From: Stelian Pop Date: Wed, 16 Jan 2002 10:53:28 +0000 (+0000) Subject: Small warning fixes. X-Git-Tag: release_0_4b27~9 X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=commitdiff_plain;h=9d8b11d7653be6f936234e8e71e003a18c6cdd4d;ds=sidebyside Small warning fixes. --- diff --git a/restore/interactive.c b/restore/interactive.c index 2dad978..10cc5bf 100644 --- a/restore/interactive.c +++ b/restore/interactive.c @@ -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 @@ -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) { diff --git a/restore/restore.c b/restore/restore.c index 8f0cfd5..c96fe6c 100644 --- a/restore/restore.c +++ b/restore/restore.c @@ -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 @@ -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)