diff options
Diffstat (limited to 'str.c')
| -rw-r--r-- | str.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -29,8 +29,8 @@ __must_check __malloc void *dss_realloc(void *p, size_t size) */ assert(size); if (!(p = realloc(p, size))) { - DSS_EMERG_LOG(("realloc failed (size = %zu), aborting\n", - size)); + DSS_EMERG_LOG("realloc failed (size = %zu), aborting\n", + size); exit(EXIT_FAILURE); } return p; @@ -44,8 +44,8 @@ __must_check __malloc void *dss_malloc(size_t size) p = malloc(size); if (!p) { - DSS_EMERG_LOG(("malloc failed (size = %zu), aborting\n", - size)); + DSS_EMERG_LOG("malloc failed (size = %zu), aborting\n", + size); exit(EXIT_FAILURE); } return p; @@ -70,7 +70,7 @@ __must_check __malloc char *dss_strdup(const char *s) if ((ret = strdup(s? s: ""))) return ret; - DSS_EMERG_LOG(("strdup failed, aborting\n")); + DSS_EMERG_LOG("strdup failed, aborting\n"); exit(EXIT_FAILURE); } @@ -113,7 +113,7 @@ __must_check __malloc char *get_homedir(void) const char *home = getenv("HOME"); if (home && *home) return dss_strdup(home); - DSS_EMERG_LOG(("fatal: HOME is unset or empty\n")); + DSS_EMERG_LOG("fatal: HOME is unset or empty\n"); exit(EXIT_FAILURE); } |
