From fa332a06ecffaa027a0b09cdd1907a03d4318911 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Mon, 21 Mar 2005 05:18:46 +0000 Subject: * construct "struct {} list [] = {}" confuses pgindent - split those. It was a bad style to begin with, and now several loops can be clearer. * pgcrypto.c: Fix function comments * crypt-gensalt.c, crypt-blowfish.c: stop messing with errno * openssl.c: use px_free instead pfree * px.h: make redefining px_alloc/px_realloc/px_free easier Marko Kreen --- contrib/pgcrypto/crypt-gensalt.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'contrib/pgcrypto/crypt-gensalt.c') diff --git a/contrib/pgcrypto/crypt-gensalt.c b/contrib/pgcrypto/crypt-gensalt.c index c58e794789f..8713b99a165 100644 --- a/contrib/pgcrypto/crypt-gensalt.c +++ b/contrib/pgcrypto/crypt-gensalt.c @@ -15,11 +15,6 @@ #include "px.h" #include "px-crypt.h" -#include -#ifndef __set_errno -#define __set_errno(val) (errno = (val)) -#endif - typedef unsigned int BF_word; unsigned char _crypt_itoa64[64 + 1] = @@ -33,7 +28,6 @@ _crypt_gensalt_traditional_rn(unsigned long count, { if (output_size > 0) output[0] = '\0'; - __set_errno((output_size < 2 + 1) ? ERANGE : EINVAL); return NULL; } @@ -57,7 +51,6 @@ _crypt_gensalt_extended_rn(unsigned long count, { if (output_size > 0) output[0] = '\0'; - __set_errno((output_size < 1 + 4 + 4 + 1) ? ERANGE : EINVAL); return NULL; } @@ -91,7 +84,6 @@ _crypt_gensalt_md5_rn(unsigned long count, { if (output_size > 0) output[0] = '\0'; - __set_errno((output_size < 3 + 4 + 1) ? ERANGE : EINVAL); return NULL; } @@ -173,7 +165,6 @@ _crypt_gensalt_blowfish_rn(unsigned long count, { if (output_size > 0) output[0] = '\0'; - __set_errno((output_size < 7 + 22 + 1) ? ERANGE : EINVAL); return NULL; } -- cgit v1.2.3