diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 19:58:24 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-15 19:58:24 +0200 |
commit | d0e510b29af9a1d12a507f03f352b6d39adc0ace (patch) | |
tree | fb3dcc42439e70fa6c9aad86a199d12889fa6ca6 /sys/src/cmd/rc/plan9.c | |
parent | 7717051e3ce062fbdb8415e4befa5205d25e80bb (diff) |
rc: remove pointless Memcpy(),Malloc(),Realloc() and efree() wrappers
Diffstat (limited to 'sys/src/cmd/rc/plan9.c')
-rw-r--r-- | sys/src/cmd/rc/plan9.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sys/src/cmd/rc/plan9.c b/sys/src/cmd/rc/plan9.c index 61ddfaba7..412e6957d 100644 --- a/sys/src/cmd/rc/plan9.c +++ b/sys/src/cmd/rc/plan9.c @@ -144,7 +144,7 @@ Vinit(void) setvar(ent[i].name, val); vlook(ent[i].name)->changed = 0; close(f); - efree(buf); + free(buf); } } } @@ -335,7 +335,7 @@ Execute(word *args, word *path) rerrstr(file, sizeof file); setstatus(file); pfmt(err, "%s: %s\n", argv[1], file); - efree((char *)argv); + free(argv); } #define NDIR 256 /* shoud be a better way */ @@ -574,24 +574,6 @@ Abort(void) Exit("aborting"); } -void -Memcpy(void *a, void *b, long n) -{ - memmove(a, b, n); -} - -void* -Malloc(ulong n) -{ - return malloc(n); -} - -void* -Realloc(void *p, ulong n) -{ - return realloc(p, n); -} - int *waitpids; int nwaitpids; |