config: fix typo in reload_cb
authorSteven Barth <steven@midlink.org>
Tue, 21 Apr 2015 07:42:17 +0000 (09:42 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 21 Apr 2015 07:42:17 +0000 (09:42 +0200)
src/config.c

index 9dbe7f0840c3213b5c170804716c4697ca81844f..f9ad3b8bc10a73bd1d44d8ae325ae09ff1c2a667 100644 (file)
@@ -695,7 +695,7 @@ static void handle_signal(int signal)
 static void reload_cb(struct uloop_fd *u, _unused unsigned int events)
 {
        char b[512];
-       if (read(u->fd, b, sizeof(b) < 0)) {}
+       if (read(u->fd, b, sizeof(b)) < 0) {}
        odhcpd_reload();
 }