From: jsing Date: Thu, 17 Apr 2014 13:58:39 +0000 (+0000) Subject: KNF. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cbdc1e3d4dac0243f5689f1d04f0d4ccacbc9fa8;p=openbsd KNF. --- diff --git a/lib/libcrypto/buffer/buf_str.c b/lib/libcrypto/buffer/buf_str.c index c884d20c66e..7b1663349cc 100644 --- a/lib/libcrypto/buffer/buf_str.c +++ b/lib/libcrypto/buffer/buf_str.c @@ -74,7 +74,7 @@ BUF_strdup(const char *str) char *ret = NULL; if (str != NULL) { if (!(ret = strdup(str))) - BUFerr(BUF_F_BUF_STRDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_STRDUP, ERR_R_MALLOC_FAILURE); } return ret; } @@ -85,7 +85,7 @@ BUF_strndup(const char *str, size_t siz) char *ret = NULL; if (str != NULL) { if (!(ret = strndup(str, siz))) - BUFerr(BUF_F_BUF_STRNDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_STRNDUP, ERR_R_MALLOC_FAILURE); } return ret; } @@ -96,7 +96,7 @@ BUF_memdup(const void *data, size_t siz) void *ret = NULL; if (data != NULL) { if (!(ret = malloc(siz))) - BUFerr(BUF_F_BUF_MEMDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_MEMDUP, ERR_R_MALLOC_FAILURE); else (void) memcpy(ret, data, siz); } diff --git a/lib/libssl/src/crypto/buffer/buf_str.c b/lib/libssl/src/crypto/buffer/buf_str.c index c884d20c66e..7b1663349cc 100644 --- a/lib/libssl/src/crypto/buffer/buf_str.c +++ b/lib/libssl/src/crypto/buffer/buf_str.c @@ -74,7 +74,7 @@ BUF_strdup(const char *str) char *ret = NULL; if (str != NULL) { if (!(ret = strdup(str))) - BUFerr(BUF_F_BUF_STRDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_STRDUP, ERR_R_MALLOC_FAILURE); } return ret; } @@ -85,7 +85,7 @@ BUF_strndup(const char *str, size_t siz) char *ret = NULL; if (str != NULL) { if (!(ret = strndup(str, siz))) - BUFerr(BUF_F_BUF_STRNDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_STRNDUP, ERR_R_MALLOC_FAILURE); } return ret; } @@ -96,7 +96,7 @@ BUF_memdup(const void *data, size_t siz) void *ret = NULL; if (data != NULL) { if (!(ret = malloc(siz))) - BUFerr(BUF_F_BUF_MEMDUP,ERR_R_MALLOC_FAILURE); + BUFerr(BUF_F_BUF_MEMDUP, ERR_R_MALLOC_FAILURE); else (void) memcpy(ret, data, siz); }