=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdistd/filesys-os.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/rdistd/filesys-os.c 1996/06/26 05:38:21 1.3 +++ src/usr.bin/rdistd/filesys-os.c 1997/06/17 20:37:53 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: filesys-os.c,v 1.3 1996/06/26 05:38:21 deraadt Exp $ */ +/* $OpenBSD: filesys-os.c,v 1.4 1997/06/17 20:37:53 kstailey Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint static char RCSid[] = -"$OpenBSD: filesys-os.c,v 1.3 1996/06/26 05:38:21 deraadt Exp $"; +"$OpenBSD: filesys-os.c,v 1.4 1997/06/17 20:37:53 kstailey Exp $"; static char sccsid[] = "@(#)filesys-os.c"; @@ -88,7 +88,7 @@ entries_left = mntctl(MCTL_QUERY, size, mntbuf); if (!entries_left) - return((FILE *)NULL); + return(NULL); mnt = (struct vmount *)mntbuf; return((FILE *) 1); @@ -109,15 +109,15 @@ if (mntbuf) (void) free(mntbuf); - size = getfsstat((struct statfs *) NULL, 0, MNT_WAIT); + size = getfsstat(NULL, 0, MNT_WAIT); if (size == -1) - return ((FILE *)NULL); + return (NULL); size *= sizeof(struct statfs); mntbuf = (char *) xmalloc(size); entries_left = getfsstat((struct statfs *)mntbuf, size, MNT_WAIT); if (entries_left == -1) - return((FILE *) NULL); + return(NULL); mnt = (struct statfs *) mntbuf; @@ -216,7 +216,7 @@ if (mntbuf) { (void) free(mntbuf); - mntbuf = (char *) NULL; + mntbuf = NULL; } } #endif /* FSI_MNTCTL || FSI_GETFSSTAT */ @@ -275,7 +275,7 @@ return(&me); } else - return((mntent_t *) NULL); + return(NULL); } #endif /* FSI_GETMNTNET2 */ @@ -329,7 +329,7 @@ return(&me); } else - return((mntent_t *) NULL); + return(NULL); } #endif /* FSI_GETMNTNET */ @@ -368,8 +368,8 @@ static mntent_t me; if (getmnt(&startmounts, &fs_data, sizeof(fs_data), NOSTAT_MANY, - (char *) NULL) <= 0) - return((mntent_t *) NULL); + NULL) <= 0) + return(NULL); bzero((char *)&me, sizeof(mntent_t)); me.me_path = fs_data.fd_path; @@ -394,7 +394,7 @@ mntent_t *new; if (!old) - return((mntent_t *) NULL); + return(NULL); new = (mntent_t *) xcalloc(1, sizeof(mntent_t)); new->me_path = strdup(old->me_path);