diff options
author | okan <okan> | 2020-02-27 14:56:39 +0000 |
---|---|---|
committer | okan <okan> | 2020-02-27 14:56:39 +0000 |
commit | 96275a835d34b0e17da0c4d3bad294620f82d4d5 (patch) | |
tree | 700a125e15c14c00d85f3f14719c090184df7fa5 /xmalloc.c | |
parent | 7a88b2bdb2789e549ed4caab37c814198e347696 (diff) | |
download | cwm-96275a835d34b0e17da0c4d3bad294620f82d4d5.tar.gz cwm-96275a835d34b0e17da0c4d3bad294620f82d4d5.tar.xz cwm-96275a835d34b0e17da0c4d3bad294620f82d4d5.zip |
Unrelated style fixes, consistency changes and sorting, appropriate
dosage/removal of wrappers, simplification of name queue, client cycle joins other kb/mb bound functions.
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmalloc.c b/xmalloc.c index 69973de..211d64c 100644 --- a/xmalloc.c +++ b/xmalloc.c @@ -43,7 +43,7 @@ xmalloc(size_t siz) if ((p = malloc(siz)) == NULL) err(1, "malloc"); - return(p); + return p; } void * @@ -58,7 +58,7 @@ xcalloc(size_t no, size_t siz) if ((p = calloc(no, siz)) == NULL) err(1, "calloc"); - return(p); + return p; } void * @@ -70,7 +70,7 @@ xreallocarray(void *ptr, size_t nmemb, size_t size) if (p == NULL) errx(1, "xreallocarray: out of memory (new_size %zu bytes)", nmemb * size); - return(p); + return p; } char * @@ -81,7 +81,7 @@ xstrdup(const char *str) if ((p = strdup(str)) == NULL) err(1, "strdup"); - return(p); + return p; } int @@ -94,7 +94,7 @@ xasprintf(char **ret, const char *fmt, ...) i = xvasprintf(ret, fmt, ap); va_end(ap); - return(i); + return i; } int @@ -106,5 +106,5 @@ xvasprintf(char **ret, const char *fmt, va_list ap) if (i == -1) err(1, "vasprintf"); - return(i); + return i; } |