]> jfr.im git - irc/ircd-hybrid/libopm.git/commit
src/snprintf.[ch]:
authorandy <redacted>
Sat, 11 Jan 2003 06:18:42 +0000 (06:18 +0000)
committerandy <redacted>
Sat, 11 Jan 2003 06:18:42 +0000 (06:18 +0000)
commita72c9e1a2038c540ecba0dfb98ae07c2e07e8c7e
tree94086d59dcf1ac73f9aa473cc38a89dc40493826
parentc3fda854cf60ede72defd0509eb69b5c082bff9d
src/snprintf.[ch]:
Added Mark Martinec's replacement (v)snprintf from
http://www.ijs.si/software/snprintf/ for systems without (v)snprintf
        (or with a broken one)

src/compat.c:
Renamed inet_aton to libopm_inet_aton to avoid clashes.

src/compat.h:
On systems without inet_aton, use libopm_inet_aton.

On systems without (or with broken) (v)snprintf, use
libopm_snprintf (from snprintf.c).

On systems without inet_pton, use libopm_inetpton (from inet.c).

src/inet.c:
For now made inetntoa() static, as it is used nowhere else but
this file.

Commented out inetntop() -- it doesn't seem to be used anywhere?

Removed bopm_gethostbyname() -- it wasn't used anywhere.

src/proxy.c:
No longer needs to include stdio.h.

src/test.c:
Needs to include compat.h and be linked with compat.o.
14 files changed:
Makefile.in
aclocal.m4
configure
configure.in
doc/Makefile.in
src/Makefile.am
src/Makefile.in
src/compat.c
src/compat.h
src/inet.c
src/proxy.c
src/snprintf.c [new file with mode: 0644]
src/snprintf.h [new file with mode: 0644]
src/test.c