X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=compat%2Flib%2Ffstab.c;h=3bbae804403891945327967a8cd5ee9e54b3496c;hp=0b51de5040e87bf98bdb51e3b00018fd34107ca7;hb=df9ae507502f413c72119dde6ea3d35c91dba5bf;hpb=b45f51d61e911ac8a040bef1efda6afd82261e03 diff --git a/compat/lib/fstab.c b/compat/lib/fstab.c index 0b51de5..3bbae80 100644 --- a/compat/lib/fstab.c +++ b/compat/lib/fstab.c @@ -2,8 +2,7 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999 - * + * Stelian Pop , 1999 */ /* @@ -39,9 +38,10 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)fstab.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ +#ifndef lint +static const char rcsid[] = + "$Id: fstab.c,v 1.5 1999/10/13 09:57:19 stelian Exp $"; +#endif /* not lint */ #include #include @@ -58,7 +58,7 @@ static void error __P((int)); static int fstabscan __P((void)); static -int fstabscan() +int fstabscan(void) { struct mntent *mnt; register char *cp; @@ -111,7 +111,7 @@ int fstabscan() } struct fstab * -getfsent() +getfsent(void) { if ((!_fs_fp && !setfsent()) || !fstabscan()) return((struct fstab *)NULL); @@ -119,8 +119,7 @@ getfsent() } struct fstab * -getfsspec(name) - register const char *name; +getfsspec(const char *name) { if (setfsent()) while (fstabscan()) @@ -130,8 +129,7 @@ getfsspec(name) } struct fstab * -getfsfile(name) - register const char *name; +getfsfile(const char *name) { if (setfsent()) while (fstabscan()) @@ -140,7 +138,8 @@ getfsfile(name) return((struct fstab *)NULL); } -int setfsent() +int +setfsent(void) { if (_fs_fp) { rewind(_fs_fp); @@ -153,7 +152,7 @@ int setfsent() } void -endfsent() +endfsent(void) { if (_fs_fp) { (void)endmntent(_fs_fp); @@ -162,8 +161,7 @@ endfsent() } static -void error(err) - int err; +void error(int err) { char *p;