diff options
| author | Alexander Barton <alex@barton.de> | 2014-03-16 22:11:26 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2014-03-16 22:11:26 +0100 |
| commit | 43fb18f2f5a506c4d78967e4b6e961b7339c98dc (patch) | |
| tree | f729b253ab48ae0dede29b15a0bac395770fadcf /src/portab | |
| parent | a4ed90ba9af1dce4df3f57f6a7c84097000c7256 (diff) | |
| download | ngircd-43fb18f2f5a506c4d78967e4b6e961b7339c98dc.tar.gz ngircd-43fb18f2f5a506c4d78967e4b6e961b7339c98dc.zip | |
Code cleanup, remove blank lines
Diffstat (limited to 'src/portab')
| -rw-r--r-- | src/portab/portab.h | 5 | ||||
| -rw-r--r-- | src/portab/strlcpy.c | 2 | ||||
| -rw-r--r-- | src/portab/strndup.c | 2 |
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 - |