summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2014-03-16 22:59:03 +0100
committerAlexander Barton <alex@barton.de>2014-03-16 22:59:03 +0100
commit51396f8f1c10506b558ce98aafb80aff4b2a95bd (patch)
treec61b0fdc7c208a35f6131f450a605e6a71e20c2b /src
parent6238196dac6cab9dae0b4d01190a7fad307d5a93 (diff)
downloadngircd-51396f8f1c10506b558ce98aafb80aff4b2a95bd.tar.gz
ngircd-51396f8f1c10506b558ce98aafb80aff4b2a95bd.zip
strdup.c: Code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/portab/strdup.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/portab/strdup.c b/src/portab/strdup.c
index 7c0ee8fd..795af726 100644
--- a/src/portab/strdup.c
+++ b/src/portab/strdup.c
@@ -19,18 +19,19 @@
 #include "exp.h"
 
 GLOBAL char *
-strdup( const char *s )
+strdup(const char *s)
 {
- char *dup;
- size_t len = strlen( s );
- size_t alloc = len + 1;
+	char *dup;
+	size_t len = strlen(s);
+	size_t alloc = len + 1;
 
- if (len >= alloc ) return NULL;
- dup = malloc( alloc );
- if (dup) strlcpy(dup, s, alloc );
+	if (len >= alloc)
+		return NULL;
+	dup = malloc(alloc);
+	if (dup)
+		strlcpy(dup, s, alloc );
 
-return dup;
+	return dup;
 }
 
 #endif
-