mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Remove u_int32_t
This commit is contained in:
parent
3f8bc47d6a
commit
f5a219204b
@ -3,7 +3,7 @@
|
||||
* is for IP V4 CIDR notation, but prepared for V6: just
|
||||
* add the necessary bits where the comments indicate.
|
||||
*
|
||||
* $Id: ip.c,v 1.1 1998/10/03 05:40:49 momjian Exp $
|
||||
* $Id: ip.c,v 1.2 1998/10/04 15:31:06 momjian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -266,7 +266,7 @@ ipaddr_cmp(ipaddr *a1, ipaddr *a2)
|
||||
*/
|
||||
|
||||
int
|
||||
v4bitncmp(u_int32_t a1, u_int32_t a2, int bits)
|
||||
v4bitncmp(unsigned int a1, unsigned int a2, int bits)
|
||||
{
|
||||
unsigned long mask = 0;
|
||||
int i;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: builtins.h,v 1.56 1998/10/03 05:40:59 momjian Exp $
|
||||
* $Id: builtins.h,v 1.57 1998/10/04 15:31:07 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This should normally only be included by fmgr.h.
|
||||
@ -532,7 +532,7 @@ bool ipaddr_subeq(ipaddr * a1, ipaddr * a2);
|
||||
bool ipaddr_sup(ipaddr * a1, ipaddr * a2);
|
||||
bool ipaddr_supeq(ipaddr * a1, ipaddr * a2);
|
||||
int4 ipaddr_cmp(ipaddr * a1, ipaddr * a2);
|
||||
int v4bitncmp(u_int32_t a1, u_int32_t a2, int bits);
|
||||
int v4bitncmp(unsigned int a1, unsigned int a2, int bits);
|
||||
|
||||
|
||||
/* mac.c */
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: mac.h,v 1.1 1998/10/03 05:41:01 momjian Exp $
|
||||
* $Id: mac.h,v 1.2 1998/10/04 15:31:09 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -23,7 +23,7 @@ typedef struct
|
||||
unsigned char bits;
|
||||
union
|
||||
{
|
||||
u_int32_t ipv4_addr; /* network byte order */
|
||||
unsigned int ipv4_addr; /* network byte order */
|
||||
/* add IPV6 address type here */
|
||||
} addr;
|
||||
} ipaddr_struct;
|
||||
|
Loading…
Reference in New Issue
Block a user