=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/dir.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/mg/dir.c 2002/02/13 03:03:49 1.7 +++ src/usr.bin/mg/dir.c 2002/03/11 13:02:56 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.7 2002/02/13 03:03:49 vincent Exp $ */ +/* $OpenBSD: dir.c,v 1.8 2002/03/11 13:02:56 vincent Exp $ */ /* * Name: MG 2a @@ -17,9 +17,8 @@ * Initialize anything the directory management routines need */ void -dirinit() +dirinit(void) { - if (!(wdir = getcwd(cwd, sizeof(cwd)))) panic("Can't get current directory!"); } @@ -29,8 +28,7 @@ */ /* ARGSUSED */ int -changedir(f, n) - int f, n; +changedir(int f, int n) { int s; char bufc[NPAT]; @@ -55,7 +53,7 @@ */ /* ARGSUSED */ int -showcwdir(f, n) +showcwdir(int f, int n) { ewprintf("Current directory: %s", wdir);