summaryrefslogtreecommitdiffstats
path: root/mandoc_aux.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
commitcdd9965f2080354017315270cbc3dc2da6378df9 (patch)
treeabceb46c894355584ad94178001ebb10ff35db04 /mandoc_aux.c
parent2c5e2d1085930e82ce52bf9402182a0630e8f39d (diff)
downloadmandoc-cdd9965f2080354017315270cbc3dc2da6378df9.tar.gz
modernize style: "return" is not a function
Diffstat (limited to 'mandoc_aux.c')
-rw-r--r--mandoc_aux.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mandoc_aux.c b/mandoc_aux.c
index 76d05643..51dd8dff 100644
--- a/mandoc_aux.c
+++ b/mandoc_aux.c
@@ -41,7 +41,7 @@ mandoc_asprintf(char **dest, const char *fmt, ...)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(ret);
+ return ret;
}
void *
@@ -54,7 +54,7 @@ mandoc_calloc(size_t num, size_t size)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(ptr);
+ return ptr;
}
void *
@@ -67,7 +67,7 @@ mandoc_malloc(size_t size)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(ptr);
+ return ptr;
}
void *
@@ -79,7 +79,7 @@ mandoc_realloc(void *ptr, size_t size)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(ptr);
+ return ptr;
}
void *
@@ -91,7 +91,7 @@ mandoc_reallocarray(void *ptr, size_t num, size_t size)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(ptr);
+ return ptr;
}
char *
@@ -104,7 +104,7 @@ mandoc_strdup(const char *ptr)
perror(NULL);
exit((int)MANDOCLEVEL_SYSERR);
}
- return(p);
+ return p;
}
char *
@@ -115,5 +115,5 @@ mandoc_strndup(const char *ptr, size_t sz)
p = mandoc_malloc(sz + 1);
memcpy(p, ptr, sz);
p[(int)sz] = '\0';
- return(p);
+ return p;
}