Sfoglia il codice sorgente

libdpkg: Change subproc_fork return type to pid_t

Guillem Jover 16 anni fa
parent
commit
c53fdb8552
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      lib/dpkg/subproc.c
  2. 1 1
      lib/dpkg/subproc.h

+ 1 - 1
lib/dpkg/subproc.c

@@ -87,7 +87,7 @@ subproc_fork_cleanup(int argc, void **argv)
 	exit(2);
 }
 
-int
+pid_t
 subproc_fork(void)
 {
 	pid_t r;

+ 1 - 1
lib/dpkg/subproc.h

@@ -34,7 +34,7 @@ void subproc_signals_cleanup(int argc, void **argv);
 #define PROCWARN 2
 #define PROCNOERR 4
 
-int subproc_fork(void);
+pid_t subproc_fork(void);
 int subproc_wait(pid_t pid, const char *desc);
 int subproc_check(int status, const char *desc, int flags);
 int subproc_wait_check(pid_t pid, const char *desc, int flags);