summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-02-27 05:55:31 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-02-27 05:55:31 +0000
commit25c0c4e7eb2c5c668b06487d71803586771974b8 (patch)
tree99e91c3a57be209f73b253fcf2428b18535005bd /usr.bin/mg
parentff0d834abcf80c7933927f5a48229e54b48c8e9f (diff)
use rmdir, not unlinkdir hack
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/dired.c2
-rw-r--r--usr.bin/mg/sysdef.h1
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 {