diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-01 22:48:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-11-01 22:48:25 +0000 |
commit | 0d4a8b501a333f21537644295b00b6798e2d961f (patch) | |
tree | 2787ac0711abd289a6897cf0d059f211e2f66f2f /source/lib/replace.c | |
parent | 9c911d91a4a7a2b21cfb1e51841988ae1702834a (diff) | |
download | samba-0d4a8b501a333f21537644295b00b6798e2d961f.tar.gz samba-0d4a8b501a333f21537644295b00b6798e2d961f.tar.xz samba-0d4a8b501a333f21537644295b00b6798e2d961f.zip |
r3443: the next stage in the include files re-organisation.
I have created the include/system/ directory, which will contain the
wrappers for the system includes for logical subsystems. So far I have
created include/system/kerberos.h and include/system/network.h, which
contain all the system includes for kerberos code and networking code.
These are the included in subsystems that need kerberos or networking
respectively.
Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C
file, instead each C module includes the include/system/XXX.h file for
the logical system support it needs, and the details are kept isolated
in include/system/
This patch also creates a "struct ipv4_addr" which replaces "struct
in_addr" in our code. That avoids every C file needing to import all
the system networking headers.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r-- | source/lib/replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c index c23c65c8c81..28c60130f87 100644 --- a/source/lib/replace.c +++ b/source/lib/replace.c @@ -326,7 +326,7 @@ duplicate a string #ifndef WITH_PTHREADS /* REWRITE: not thread safe */ #ifdef REPLACE_INET_NTOA -char *rep_inet_ntoa(struct in_addr ip) +char *rep_inet_ntoa(struct ipv4_addr ip) { uint8_t *p = (uint8_t *)&ip.s_addr; static char buf[18]; |