]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- use pid_t instead of int 845/head
authorArvin Schnell <aschnell@suse.de>
Tue, 31 Oct 2023 08:10:02 +0000 (09:10 +0100)
committerArvin Schnell <aschnell@suse.de>
Tue, 31 Oct 2023 08:10:02 +0000 (09:10 +0100)
snapper/SystemCmd.h

index f8bcede1a24d31dcb13a886b01153e0354a0f688..5c9f7d8b1d2e78b7d1bdd1e629eae792d3a68ea0 100644 (file)
@@ -25,6 +25,7 @@
 #define SNAPPER_SYSTEM_CMD_H
 
 #include <poll.h>
+#include <sys/types.h>
 #include <cstdio>
 #include <string>
 #include <vector>
@@ -158,7 +159,7 @@ namespace snapper
        vector<string> Lines_aC[2];
        bool NewLineSeen_ab[2];
        int Ret_i = 0;
-       int Pid_i = 0;
+       pid_t Pid_i = 0;
        struct pollfd pfds[2];
 
        static const unsigned line_limit = 50;