From: Florian Franzmann Date: Sat, 5 Sep 2020 14:59:13 +0000 (+0200) Subject: Cleanup: Use correct format string X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/88312881242f20e35ed0e0544749945c9538ed02 Cleanup: Use correct format string --- diff --git a/hmland.c b/hmland.c index 210893d..c1ba714 100644 --- a/hmland.c +++ b/hmland.c @@ -654,7 +654,7 @@ static int socket_server(char *iface, int port, int flags) exit(EXIT_FAILURE); } - if (fscanf(pidfile, "%u", &old_pid) != 1) { + if (fscanf(pidfile, "%d", &old_pid) != 1) { fclose(pidfile); fprintf(stderr, "Can't read old PID from " PID_FILE ", already running?\n"); exit(EXIT_FAILURE);