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

Commit 1d0085e

Browse files
committed
Dec alphaserver patch from Malcolm Beattie
1 parent fe54c54 commit 1d0085e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backend/libpq/pqcomprim.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#if BYTE_ORDER == BIG_ENDIAN
2828
#define ntoh_s(n) (u_short)(((u_char *)&n)[1] << 8 \
2929
| ((u_char *)&n)[0])
30-
#define ntoh_l(n) (u_long) (((u_char *)&n)[3] << 24 \
30+
#define ntoh_l(n) (uint32) (((u_char *)&n)[3] << 24 \
3131
| ((u_char *)&n)[2] << 16 \
3232
| ((u_char *)&n)[1] << 8 \
3333
| ((u_char *)&n)[0])
@@ -65,10 +65,10 @@ int
6565
pqPutLong(int integer, FILE *f)
6666
{
6767
int retval = 0;
68-
u_long n;
68+
uint32 n;
6969

7070
n = hton_l(integer);
71-
if (fwrite(&n, sizeof(u_long), 1, f) != 1)
71+
if (fwrite(&n, sizeof(uint32), 1, f) != 1)
7272
retval = EOF;
7373

7474
return retval;
@@ -93,9 +93,9 @@ int
9393
pqGetLong(int *result, FILE *f)
9494
{
9595
int retval = 0;
96-
u_long n;
96+
uint32 n;
9797

98-
if (fread(&n, sizeof(u_long), 1, f) != 1)
98+
if (fread(&n, sizeof(uint32), 1, f) != 1)
9999
retval = EOF;
100100

101101
*result = ntoh_l(n);

src/backend/port/inet_aton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
int
5858
inet_aton(const char *cp, struct in_addr * addr)
5959
{
60-
register u_long val;
60+
register uint32 val;
6161
register int base,
6262
n;
6363
register char c;

0 commit comments

Comments
 (0)