summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2004-04-25 23:16:59 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2004-04-25 23:16:59 +0000
commit19b8f699d66e9163e1d6fba1e45a67e55e520e5c (patch)
tree51a15c696f6c87c4d5d43f43625d4e3f588d09ef
parent1028c3f905f6b590440f07317de0b2abeb52538a (diff)
in sparc-specific code when using non-C99 compiler like gcc 2.95 that doesn't allow variable declarations in the middle of a code block. xc/programs/xfs/difs/Imakefile Make sure VendorReleaseDefines is defined, even if XOrgVersion isn't
-rw-r--r--src/xf86Tek4957.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c
index 96f5406..ef532db 100644
--- a/src/xf86Tek4957.c
+++ b/src/xf86Tek4957.c
@@ -1,3 +1,4 @@
+/* $XdotOrg:$ */
/*
* Copyright 2002 by Olivier DANET <odanet@caramail.com>
*
@@ -21,7 +22,7 @@
* TORTIOUS ACTIONS, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86$ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/input/tek4957/xf86Tek4957.c,v 1.1 2002/11/11 01:18:08 alanh Exp $ */
#ifndef XFree86LOADER
#include <unistd.h>
@@ -589,16 +590,16 @@ TekInit(InputDriverPtr drv,
local->old_y = -1;
#if defined (sun) && !defined(i386)
- char *dev_name;
-#endif
-
-#if defined(sun) && !defined(i386)
- if ((dev_name = getenv("TEK4957_DEV"))) {
- priv->Device = xalloc(strlen(dev_name) + 1);
- strcpy(priv->Device, dev_name);
- xf86Msg(X_INFO,"Tek4957:Port selected : %s\n", priv->Device);
- } else {
- priv->Device = "";
+ {
+ char *dev_name;
+
+ if ((dev_name = getenv("TEK4957_DEV"))) {
+ priv->Device = xalloc(strlen(dev_name) + 1);
+ strcpy(priv->Device, dev_name);
+ xf86Msg(X_INFO,"Tek4957:Port selected : %s\n", priv->Device);
+ } else {
+ priv->Device = "";
+ }
}
#else
priv->Device = ""; /* device file name */