aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorokan2020-02-27 14:56:39 +0000
committerWynn Wolf Arbor2020-03-18 14:30:58 +0100
commitd8f3547b8f545b439d9df7b41cfe872ce6c8f42d (patch)
tree1be865226e709457b823835f42a3ed338801f74a /util.c
parenta4006dcef17be430ad3cc2c2a63ea1de75a20d62 (diff)
downloadcwm-d8f3547b8f545b439d9df7b41cfe872ce6c8f42d.tar.gz
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 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 609f51a..cb101ee 100644
--- a/util.c
+++ b/util.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: util.c,v 1.24 2019/04/29 19:03:20 tim Exp $
+ * $OpenBSD: util.c,v 1.25 2020/02/27 14:56:39 okan Exp $
*/
#include <sys/types.h>
@@ -92,12 +92,12 @@ u_argv(char * const *argv)
char *p;
if (argv == 0)
- return(NULL);
+ return NULL;
for (i = 0; argv[i]; i++)
siz += strlen(argv[i]) + 1;
if (siz == 0)
- return(NULL);
+ return NULL;
p = xmalloc(siz);
strlcpy(p, argv[0], siz);
@@ -105,7 +105,7 @@ u_argv(char * const *argv)
strlcat(p, " ", siz);
strlcat(p, argv[i], siz);
}
- return(p);
+ return p;
}
static void