Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d0085e

Browse files
committed
Dec alphaserver patch from Malcolm Beattie
1 parentfe54c54 commit1d0085e

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
#ifBYTE_ORDER==BIG_ENDIAN
2828
#definentoh_s(n) (u_short)(((u_char *)&n)[1] << 8 \
2929
| ((u_char *)&n)[0])
30-
#definentoh_l(n) (u_long) (((u_char *)&n)[3] << 24 \
30+
#definentoh_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(intinteger,FILE*f)
6666
{
6767
intretval=0;
68-
u_longn;
68+
uint32n;
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
returnretval;
@@ -93,9 +93,9 @@ int
9393
pqGetLong(int*result,FILE*f)
9494
{
9595
intretval=0;
96-
u_longn;
96+
uint32n;
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(constchar*cp,structin_addr*addr)
5959
{
60-
registeru_longval;
60+
registeruint32val;
6161
registerintbase,
6262
n;
6363
registercharc;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp