Changeset 134 for trunk/src/sh_prelude_old.c
- Timestamp:
- Oct 26, 2007, 12:20:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_prelude_old.c
r1 r134 127 127 #define SH_NEED_GETHOSTBYXXX 128 128 #include "sh_static.h" 129 #include "sh_pthread.h" 129 130 130 131 static char programname[64]; … … 627 628 /* Get information about ip address */ 628 629 630 SH_MUTEX_LOCK(mutex_resolv); 629 631 myhost = sh_gethostbyname(hostname); 630 632 src_ip = xstrdup(inet_ntoa(*((struct in_addr *)myhost->h_addr_list[0]))); 633 SH_MUTEX_UNLOCK(mutex_resolv); 631 634 632 635
Note:
See TracChangeset
for help on using the changeset viewer.