diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2007-12-29 03:09:27 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2007-12-29 03:09:27 +0000 |
commit | e221f75205a461803ad1507060da07293a188cd8 (patch) | |
tree | d9c082d7b6c196c56d1e84f7d716be2ee9d833f1 /xserver/hw/xfree86/common | |
parent | c49a81fe358c006d35c8ff0961be5bb5ecb2611b (diff) |
fix for gcc2 (declaration 1st within each scope)
ok matthieu@
Diffstat (limited to 'xserver/hw/xfree86/common')
-rw-r--r-- | xserver/hw/xfree86/common/xf86Config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xserver/hw/xfree86/common/xf86Config.c b/xserver/hw/xfree86/common/xf86Config.c index fe65fab13..798602274 100644 --- a/xserver/hw/xfree86/common/xf86Config.c +++ b/xserver/hw/xfree86/common/xf86Config.c @@ -600,8 +600,9 @@ configFiles(XF86ConfFilesPtr fileconf) pathFrom = X_CONFIG; if (*f) { if (xf86Info.useDefaultFontPath) { + char *g; xf86Msg(X_DEFAULT, "Including the default font path %s.\n", defaultFontPath); - char *g = xnfalloc(strlen(defaultFontPath) + strlen(f) + 3); + g = xnfalloc(strlen(defaultFontPath) + strlen(f) + 3); strcpy(g, f); strcat(g, ","); defaultFontPath = strcat(g, defaultFontPath); @@ -1216,8 +1217,8 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout) * remove the core attribute from the later ones. */ for (devs = servlayoutp->inputs; devs && *devs; devs++) { - indp = *devs; pointer opt1 = NULL, opt2 = NULL; + indp = *devs; if (indp->commonOptions && xf86CheckBoolOption(indp->commonOptions, "CorePointer", FALSE)) { opt1 = indp->commonOptions; |