]> git.zerfleddert.de Git - hmcfgusb/commitdiff
Cleanup: Use correct format string
authorFlorian Franzmann <bwlf@bandrate.org>
Sat, 5 Sep 2020 14:59:13 +0000 (16:59 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 5 Sep 2020 16:45:20 +0000 (18:45 +0200)
hmland.c

index 210893d96a7d34972a21473ac06fd157201a18ff..c1ba714f7a71538deffce59b7899cfeb2f096b2a 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -654,7 +654,7 @@ static int socket_server(char *iface, int port, int flags)
                                                exit(EXIT_FAILURE);
                                        }
 
                                                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);
                                                fclose(pidfile);
                                                fprintf(stderr, "Can't read old PID from " PID_FILE ", already running?\n");
                                                exit(EXIT_FAILURE);
Impressum, Datenschutz