- Small changes to compile again under OpenBSD.

This commit is contained in:
Thomas Ries 2007-11-12 19:38:35 +00:00
parent fe725146cb
commit bdafa3cdbe
3 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,6 @@
0.6.1
=====
12-Nov-2007: - Small changes to compile again under OpenBSD.
0.6.0
=====

View File

@ -20,17 +20,11 @@
*/
#include "config.h"
//#include <stdio.h>
//#include <stdlib.h>
//#include <unistd.h>
#include <errno.h>
//#include <string.h>
//#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
//#include <signal.h>
#include <osipparser2/osip_parser.h>
#include "siproxd.h"

View File

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <values.h>
#include <limits.h>
#include <time.h>
#include <signal.h>
#include <string.h>
@ -208,8 +208,8 @@ int get_ip_by_host(char *hostname, struct in_addr *addr) {
*/
j=0;
k=0;
t1=MAXINT;
t2=MAXINT;
t1=INT_MAX;
t2=INT_MAX;
for (i=0; i<DNS_CACHE_SIZE; i++) {
if (dns_cache[i].hostname[0]=='\0') break;
if ((dns_cache[i].expires_timestamp < t1) &&