mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix inconsistencies and typos in the tree, take 9
This addresses more issues with code comments, variable names and unreferenced variables. Author: Alexander Lakhin Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
This commit is contained in:
@ -761,7 +761,7 @@ pgp_pub_decrypt_text(PG_FUNCTION_ARGS)
|
||||
*/
|
||||
|
||||
/*
|
||||
* Helper function for pgp_armor. Converts arrays of keys and values into
|
||||
* Helper function for pg_armor. Converts arrays of keys and values into
|
||||
* plain C arrays, and checks that they don't contain invalid characters.
|
||||
*/
|
||||
static int
|
||||
|
@ -50,9 +50,6 @@ void *px_realloc(void *p, size_t s);
|
||||
void px_free(void *p);
|
||||
#endif
|
||||
|
||||
/* max len of 'type' parms */
|
||||
#define PX_MAX_NAMELEN 128
|
||||
|
||||
/* max salt returned */
|
||||
#define PX_MAX_SALT_LEN 128
|
||||
|
||||
|
@ -59,16 +59,6 @@ static uint32 _K[] = {0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6};
|
||||
#define BCOUNT (ctxt->c.b64[0] / 8)
|
||||
#define W(n) (ctxt->m.b32[(n)])
|
||||
|
||||
#define PUTBYTE(x) \
|
||||
do { \
|
||||
ctxt->m.b8[(COUNT % 64)] = (x); \
|
||||
COUNT++; \
|
||||
COUNT %= 64; \
|
||||
ctxt->c.b64[0] += 8; \
|
||||
if (COUNT % 64 == 0) \
|
||||
sha1_step(ctxt); \
|
||||
} while (0)
|
||||
|
||||
#define PUTPAD(x) \
|
||||
do { \
|
||||
ctxt->m.b8[(COUNT % 64)] = (x); \
|
||||
|
Reference in New Issue
Block a user