File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 27
27
#if BYTE_ORDER == BIG_ENDIAN
28
28
#define ntoh_s (n ) (u_short)(((u_char *)&n)[1] << 8 \
29
29
| ((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 \
31
31
| ((u_char *)&n)[2] << 16 \
32
32
| ((u_char *)&n)[1] << 8 \
33
33
| ((u_char *)&n)[0])
65
65
pqPutLong (int integer , FILE * f )
66
66
{
67
67
int retval = 0 ;
68
- u_long n ;
68
+ uint32 n ;
69
69
70
70
n = hton_l (integer );
71
- if (fwrite (& n , sizeof (u_long ), 1 , f ) != 1 )
71
+ if (fwrite (& n , sizeof (uint32 ), 1 , f ) != 1 )
72
72
retval = EOF ;
73
73
74
74
return retval ;
93
93
pqGetLong (int * result , FILE * f )
94
94
{
95
95
int retval = 0 ;
96
- u_long n ;
96
+ uint32 n ;
97
97
98
- if (fread (& n , sizeof (u_long ), 1 , f ) != 1 )
98
+ if (fread (& n , sizeof (uint32 ), 1 , f ) != 1 )
99
99
retval = EOF ;
100
100
101
101
* result = ntoh_l (n );
Original file line number Diff line number Diff line change 57
57
int
58
58
inet_aton (const char * cp , struct in_addr * addr )
59
59
{
60
- register u_long val ;
60
+ register uint32 val ;
61
61
register int base ,
62
62
n ;
63
63
register char c ;
You can’t perform that action at this time.
0 commit comments