summaryrefslogtreecommitdiff
path: root/libexec/ld.so/util.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-28 00:22:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-28 00:22:02 +0000
commita24daf26c4470371742d4259bff163505c314f93 (patch)
treed3f722fb5349b14d6f45e770f8b2e4c4be153586 /libexec/ld.so/util.c
parent509c6d7f22d24f74b32453f00e92438acf9c9ab2 (diff)
more KNF
Diffstat (limited to 'libexec/ld.so/util.c')
-rw-r--r--libexec/ld.so/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c
index 4b3cce6199d..5313e4db2fc 100644
--- a/libexec/ld.so/util.c
+++ b/libexec/ld.so/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.4 2002/05/24 18:37:38 drahn Exp $ */
+/* $OpenBSD: util.c,v 1.5 2002/05/28 00:22:01 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -49,6 +49,7 @@ _dl_strdup(const char *orig)
{
char *newstr;
int len;
+
len = _dl_strlen(orig)+1;
newstr = _dl_malloc(len);
_dl_strlcpy(newstr, orig, len);
@@ -67,8 +68,7 @@ _dl_strdup(const char *orig)
void *
_dl_malloc(int size)
{
- long *p;
- long *t, *n;
+ long *p, *t, *n;
size = (size + 8 + DL_MALLOC_ALIGN - 1) & ~(DL_MALLOC_ALIGN - 1);