diff options
author | Sami Kerola <kerolasa@iki.fi> | 2020-11-21 22:12:36 +0000 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2020-11-23 22:48:08 +0000 |
commit | f187035d73aba923fd587b3cc7abf3b033f0ccb8 (patch) | |
tree | 50856089d6c836f8eedeae67a306eef153598330 /misc-utils/uuidd.c | |
parent | 0453925535bae517fdba09e98da578c1c67dcf58 (diff) | |
download | util-linux-f187035d73aba923fd587b3cc7abf3b033f0ccb8.tar.gz |
uuidd: make timeout to take effect when debug is not defined
The trailing comma made code to compile without issues, but meant all_done()
was called only when --debug was in defined in command-line.
Fixes: 3d6250e96b0041a3cbe2f8dd3e746cca5d6ac121
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r-- | misc-utils/uuidd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 6b584ddaf..74b333a84 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -450,7 +450,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, } if (ret == 0) { /* true when poll() times out */ if (uuidd_cxt->debug) - fprintf(stderr, _("timeout [%d sec]\n"), uuidd_cxt->timeout), + fprintf(stderr, _("timeout [%d sec]\n"), uuidd_cxt->timeout); all_done(uuidd_cxt, EXIT_SUCCESS); } if (pfd[POLLFD_SIGNAL].revents != 0) |