diff options
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/dired.c | 2 | ||||
-rw-r--r-- | usr.bin/mg/sysdef.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c index 11111e3f810..aad6763fc79 100644 --- a/usr.bin/mg/dired.c +++ b/usr.bin/mg/dired.c @@ -146,7 +146,7 @@ int f, n; } break; case TRUE: - if(unlinkdir(fname) < 0) { + if(rmdir(fname) < 0) { ewprintf("Could not delete directory '%s'", fname); return FALSE; } diff --git a/usr.bin/mg/sysdef.h b/usr.bin/mg/sysdef.h index 6da1d1937c0..b2964fbc179 100644 --- a/usr.bin/mg/sysdef.h +++ b/usr.bin/mg/sysdef.h @@ -27,7 +27,6 @@ typedef short KCHAR; /* Type for internal keystrokes */ #define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */ #define fncmp strcmp /* file name comparison */ -#define unlinkdir(fn) rmdir(fn) /* unlink directory */ #define gettermtype() getenv("TERM") /* determine terminal type */ struct fileinfo { |