1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 04:52:47 -05:00

Fix a few stylistic warnings from Apple's C compilers.

[originally from svn r2446]
This commit is contained in:
Ben Harris
2003-01-04 16:21:17 +00:00
parent e82053be5c
commit f10bd67f3a
2 changed files with 5 additions and 5 deletions

4
raw.c
View File

@ -96,7 +96,7 @@ static char *raw_init(void *frontend_handle, void **backend_handle,
sfree(buf);
}
addr = name_lookup(host, port, realhost);
if ((err = sk_addr_error(addr)))
if ((err = sk_addr_error(addr)) != NULL)
return err;
if (port < 0)
@ -113,7 +113,7 @@ static char *raw_init(void *frontend_handle, void **backend_handle,
sfree(buf);
}
raw->s = new_connection(addr, *realhost, port, 0, 1, nodelay, (Plug) raw);
if ((err = sk_socket_error(raw->s)))
if ((err = sk_socket_error(raw->s)) != NULL)
return err;
sk_addr_free(addr);