~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
noip.c: Shut up some GCC warnings.
[preload-hacks]
/
noip.c
diff --git
a/noip.c
b/noip.c
index
9f82e25
..
1dac168
100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-879,14
+879,12
@@
int bind(int sk, const struct sockaddr *sa, socklen_t len)
int connect(int sk, const struct sockaddr *sa, socklen_t len)
{
struct sockaddr_un sun;
int connect(int sk, const struct sockaddr *sa, socklen_t len)
{
struct sockaddr_un sun;
- int fixup_p = 0;
int rc;
switch (sa->sa_family) {
case AF_INET:
PRESERVING_ERRNO({
do_implicit_bind(sk, &sa, &len, &sun);
int rc;
switch (sa->sa_family) {
case AF_INET:
PRESERVING_ERRNO({
do_implicit_bind(sk, &sa, &len, &sun);
- fixup_p = 1;
});
rc = real_connect(sk, sa, len);
if (rc < 0) {
});
rc = real_connect(sk, sa, len);
if (rc < 0) {
@@
-1105,7
+1103,7
@@
static void get_local_ipaddrs(void)
/* Print the given message to standard error. Avoids stdio. */
static void printerr(const char *p)
/* Print the given message to standard error. Avoids stdio. */
static void printerr(const char *p)
- { i
nt hunoz; hunoz = write(STDERR_FILENO, p, strlen(p))
; }
+ { i
f (write(STDERR_FILENO, p, strlen(p)))
; }
/* Create the socket directory, being careful about permissions. */
static void create_sockdir(void)
/* Create the socket directory, being careful about permissions. */
static void create_sockdir(void)