summary refs log tree commit diff
path: root/src/portab
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2014-03-16 22:11:26 +0100
committerAlexander Barton <alex@barton.de>2014-03-16 22:11:26 +0100
commit43fb18f2f5a506c4d78967e4b6e961b7339c98dc (patch)
treef729b253ab48ae0dede29b15a0bac395770fadcf /src/portab
parenta4ed90ba9af1dce4df3f57f6a7c84097000c7256 (diff)
downloadngircd-43fb18f2f5a506c4d78967e4b6e961b7339c98dc.tar.gz
ngircd-43fb18f2f5a506c4d78967e4b6e961b7339c98dc.zip
Code cleanup, remove blank lines
Diffstat (limited to 'src/portab')
-rw-r--r--src/portab/portab.h5
-rw-r--r--src/portab/strlcpy.c2
-rw-r--r--src/portab/strndup.c2
3 files changed, 1 insertions, 8 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index a968a3b9..e30262d8 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -63,7 +63,6 @@
 # endif
 #endif
 
-
 /* datatypes */
 
 #ifndef PROTOTYPES
@@ -109,14 +108,12 @@ typedef unsigned char bool;
 #undef GLOBAL
 #define GLOBAL
 
-
 /* SPLint */
 
 #ifdef S_SPLINT_S
 #include "splint.h"
 #endif
 
-
 /* target constants  */
 
 #ifndef HOST_OS
@@ -182,8 +179,6 @@ extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list
 #define PACKAGE_VERSION VERSION
 #endif
 
-
 #endif
 
-
 /* -eof- */
diff --git a/src/portab/strlcpy.c b/src/portab/strlcpy.c
index ae2018bc..ce90a423 100644
--- a/src/portab/strlcpy.c
+++ b/src/portab/strlcpy.c
@@ -52,7 +52,6 @@ strlcat( char *dst, const char *src, size_t size )
 
 #endif
 
-
 #ifndef HAVE_STRLCPY
 
 GLOBAL size_t
@@ -74,5 +73,4 @@ strlcpy( char *dst, const char *src, size_t size )
 
 #endif
 
-
 /* -eof- */
diff --git a/src/portab/strndup.c b/src/portab/strndup.c
index d6e01c94..578f324c 100644
--- a/src/portab/strndup.c
+++ b/src/portab/strndup.c
@@ -30,8 +30,8 @@ strndup(const char *s, size_t maxlen)
 	dup = malloc(len);
 	if (dup)
 		strlcpy(dup, s, len);
+
 	return dup;
 }
 
 #endif
-