~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
noip.c: Silence GCC warnings about unused return values.
[preload-hacks]
/
noip.c
diff --git
a/noip.c
b/noip.c
index
9633990
..
bcba77f
100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-266,7
+266,7
@@
static int unix_socket_status(struct sockaddr_un *sun, int quickp)
rc = USED;
if ((fp = fopen("/proc/net/unix", "r")) == 0)
goto done;
rc = USED;
if ((fp = fopen("/proc/net/unix", "r")) == 0)
goto done;
-
fgets(buf, sizeof(buf), fp)
; /* skip header */
+
if (!fgets(buf, sizeof(buf), fp)) goto done
; /* skip header */
len = strlen(sun->sun_path);
while (fgets(buf, sizeof(buf), fp)) {
n = strlen(buf);
len = strlen(sun->sun_path);
while (fgets(buf, sizeof(buf), fp)) {
n = strlen(buf);
@@
-1104,7
+1104,8
@@
static void get_local_ipaddrs(void)
}
/* Print the given message to standard error. Avoids stdio. */
}
/* Print the given message to standard error. Avoids stdio. */
-static void printerr(const char *p) { write(STDERR_FILENO, p, strlen(p)); }
+static void printerr(const char *p)
+ { int hunoz; hunoz = 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)