=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/file.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/mg/file.c 2001/05/23 22:20:35 1.7 +++ src/usr.bin/mg/file.c 2001/05/23 22:36:14 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.7 2001/05/23 22:20:35 art Exp $ */ +/* $OpenBSD: file.c,v 1.8 2001/05/23 22:36:14 art Exp $ */ /* * File commands. @@ -22,7 +22,7 @@ s = eread("Insert file: ", fname, NFILEN, EFNEW | EFCR | EFFILE); if (s != TRUE) return (s); - return insertfile(adjustname(fname), (char *)NULL, FALSE); + return insertfile(adjustname(fname), NULL, FALSE); /* don't set buffer name */ } @@ -181,11 +181,11 @@ /* cheap */ bp = curbp; - if (newname != (char *)NULL) + if (newname != NULL) (void)strcpy(bp->b_fname, newname); /* hard file open */ - if ((s = ffropen(fname, needinfo ? bp : (BUFFER *) NULL)) == FIOERR) + if ((s = ffropen(fname, needinfo ? bp : NULL)) == FIOERR) goto out; if (s == FIOFNF) { /* file not found */ @@ -262,7 +262,7 @@ } endoffile: /* ignore errors */ - (void)ffclose((BUFFER *)NULL); + ffclose(NULL); /* don't zap an error */ if (s == FIOEOF) { if (nline == 1)