summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mailwrapper
diff options
context:
space:
mode:
authorjakob <jakob@openbsd.org>1999-08-02 20:42:24 +0000
committerjakob <jakob@openbsd.org>1999-08-02 20:42:24 +0000
commitcb757d3918b8fd532a2e8bbd2149ec0ace01f353 (patch)
tree21eb59448b0760d2419f3d1e0aff2f750574cf53 /usr.sbin/mailwrapper
parentrevert from using static functions, as per niklas@openbsd.org advice. (diff)
downloadwireguard-openbsd-cb757d3918b8fd532a2e8bbd2149ec0ace01f353.tar.xz
wireguard-openbsd-cb757d3918b8fd532a2e8bbd2149ec0ace01f353.zip
Indentation
Diffstat (limited to 'usr.sbin/mailwrapper')
-rw-r--r--usr.sbin/mailwrapper/mailwrapper.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c
index 7e90ad435c1..db7985dfdc5 100644
--- a/usr.sbin/mailwrapper/mailwrapper.c
+++ b/usr.sbin/mailwrapper/mailwrapper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mailwrapper.c,v 1.2 1999/08/02 20:25:47 jakob Exp $ */
+/* $OpenBSD: mailwrapper.c,v 1.3 1999/08/02 20:42:24 jakob Exp $ */
/* $NetBSD: mailwrapper.c,v 1.2 1999/02/20 22:10:07 thorpej Exp $ */
/*
@@ -73,17 +73,17 @@ addarg(al, arg, copy)
char **argv2;
if (al->argc == al->maxc) {
- al->maxc <<= 1;
-
- if ((argv2 = realloc(al->argv,
- al->maxc * sizeof(char *))) == NULL) {
- if (al->argv)
- free(al->argv);
- al->argv = NULL;
- err(1, "mailwrapper");
- } else {
- al->argv = argv2;
- }
+ al->maxc <<= 1;
+
+ if ((argv2 = realloc(al->argv,
+ al->maxc * sizeof(char *))) == NULL) {
+ if (al->argv)
+ free(al->argv);
+ al->argv = NULL;
+ err(1, "mailwrapper");
+ } else {
+ al->argv = argv2;
+ }
}
if (copy) {
if ((al->argv[al->argc++] = strdup(arg)) == NULL)