summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-09 10:44:25 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-09 10:44:25 -0700
commit490ffc205a7714145cac0c63efeb6374ea28141f (patch)
tree6b2d67b0ec95e1cef956bb4ebdb7da062e9d54ee
parent6119845d1ff832ea2b7c9cbe7ed6c6637cdcf305 (diff)
fix compiler warning in hw/xfree86/loader/loadmod.c
-rw-r--r--hw/xfree86/loader/loadmod.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
index 9c2f3a792..cf6751b70 100644
--- a/hw/xfree86/loader/loadmod.c
+++ b/hw/xfree86/loader/loadmod.c
@@ -434,8 +434,6 @@ FindModule(const char *module, const char *dir, const char **subdirlist,
strcat(buf, *s);
/*xf86Msg(X_INFO,"OS2DIAG: FindModule: buf=%s\n",buf); */
if ((stat(buf, &stat_buf) == 0) && S_ISDIR(stat_buf.st_mode)) {
- int i;
-
if (buf[dirlen - 1] != '/') {
buf[dirlen++] = '/';
}