Changes to make SICS compile on OSX Maverick with clang
This commit is contained in:
4
ascon.c
4
ascon.c
@ -40,7 +40,7 @@ static int CreateSocketAdress(struct sockaddr_in *sockaddrPtr, /* Socket addres
|
||||
(char *) hostent->h_addr_list[0], (size_t) hostent->h_length);
|
||||
} else {
|
||||
addr.s_addr = inet_addr(host);
|
||||
if (addr.s_addr == (unsigned long) -1) {
|
||||
if (addr.s_addr == (unsigned int) -1) {
|
||||
return 0; /* error */
|
||||
}
|
||||
}
|
||||
@ -73,7 +73,7 @@ void AsconError(Ascon *a, char *msg, int errorno)
|
||||
char *state;
|
||||
char num[8];
|
||||
|
||||
if (a->state < 0 || a->state >= AsconMaxState) {
|
||||
if ( a->state >= AsconMaxState) {
|
||||
state = "bad state";
|
||||
} else {
|
||||
state = stateText[a->state];
|
||||
|
Reference in New Issue
Block a user