Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3f64966

Browse files
committed
pgcrypto: Remove unused error code
PXE_DEV_READ_ERROR hasn't been used since random device support was removed from pgcrypto (fe0a0b5).
1 parent abe81ee commit 3f64966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pgcrypto/px.c

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ static const struct error_desc px_err_list[] = {
5050
{PXE_KEY_TOO_BIG, "Key was too big"},
5151
{PXE_CIPHER_INIT, "Cipher cannot be initialized ?"},
5252
{PXE_HASH_UNUSABLE_FOR_HMAC, "This hash algorithm is unusable for HMAC"},
53-
{PXE_DEV_READ_ERROR, "Error reading from random device"},
5453
{PXE_BUG, "pgcrypto bug"},
5554
{PXE_ARGUMENT_ERROR, "Illegal argument to function"},
5655
{PXE_UNKNOWN_SALT_ALGO, "Unknown salt algorithm"},

contrib/pgcrypto/px.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
#define PXE_KEY_TOO_BIG -7
5454
#define PXE_CIPHER_INIT -8
5555
#define PXE_HASH_UNUSABLE_FOR_HMAC -9
56-
#define PXE_DEV_READ_ERROR -10
56+
/* -10 is unused */
57+
/* -11 is unused */
5758
#define PXE_BUG -12
5859
#define PXE_ARGUMENT_ERROR -13
5960
#define PXE_UNKNOWN_SALT_ALGO -14

0 commit comments

Comments
 (0)