]> git.wh0rd.org Git - dump.git/commitdiff
Small warning fixes.
authorStelian Pop <stelian@popies.net>
Wed, 16 Jan 2002 10:53:28 +0000 (10:53 +0000)
committerStelian Pop <stelian@popies.net>
Wed, 16 Jan 2002 10:53:28 +0000 (10:53 +0000)
restore/interactive.c
restore/restore.c

index 2dad978a46a8fc91c5e57208325e07f78bd44af2..10cc5bfac6a1c7412fbae1c5190fdc1f2b0d8f36 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: interactive.c,v 1.18 2002/01/16 09:32:14 stelian Exp $";
+       "$Id: interactive.c,v 1.19 2002/01/16 10:53:28 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -145,8 +145,8 @@ runcmdshell(void)
        arglist.glob.gl_opendir = (void *)rst_opendir;
        arglist.glob.gl_readdir = (void *)glob_readdir;
        arglist.glob.gl_closedir = (void *)rst_closedir;
-       arglist.glob.gl_lstat = glob_stat;
-       arglist.glob.gl_stat = glob_stat;
+       arglist.glob.gl_lstat = (int (*)(const char *, void *))glob_stat;
+       arglist.glob.gl_stat = (int (*)(const char *, void *))glob_stat;
        canon("/", curdir, sizeof(curdir));
 loop:
        if (setjmp(reset) != 0) {
index 8f0cfd5cab105dffa9600e33e780036472511e3a..c96fe6c7f08f1b86c8613ee0feeacce9336c505e 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: restore.c,v 1.22 2002/01/16 09:32:14 stelian Exp $";
+       "$Id: restore.c,v 1.23 2002/01/16 10:53:28 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -870,7 +870,7 @@ createfiles(void)
                        if (!pipein)
                                getvol((long)0);
                        if (curfile.ino == maxino) {
-                               next = lowerbnd(next);
+                               next = lowerbnd(first);
                                while (next < curfile.ino) {
                                        ep = lookupino(next);
                                        if (ep == NULL)