diff options
Diffstat (limited to 'usr.bin/mg/dir.c')
-rw-r--r-- | usr.bin/mg/dir.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/mg/dir.c b/usr.bin/mg/dir.c index 737f6e438ad..85778d3ad42 100644 --- a/usr.bin/mg/dir.c +++ b/usr.bin/mg/dir.c @@ -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 @@ static char cwd[NFILEN]; * 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 @@ dirinit() */ /* ARGSUSED */ int -changedir(f, n) - int f, n; +changedir(int f, int n) { int s; char bufc[NPAT]; @@ -55,7 +53,7 @@ changedir(f, n) */ /* ARGSUSED */ int -showcwdir(f, n) +showcwdir(int f, int n) { ewprintf("Current directory: %s", wdir); |