diff --git a/lib/lib.h b/lib/lib.h index c111aeb0e..2714ad3d4 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -119,7 +119,7 @@ void xaccess(char *path, int flags); void xunlink(char *path); int xcreate(char *path, int flags, int mode); int xopen(char *path, int flags); -void xpipe(int pp); +void xpipe(int *pp); void xclose(int fd); int xdup(int fd); FILE *xfdopen(int fd, char *mode); diff --git a/lib/xwrap.c b/lib/xwrap.c index 76b0ff379..78103555d 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -310,7 +310,7 @@ int xopen(char *path, int flags) return xcreate(path, flags, 0); } -void xpipe(int pp) +void xpipe(int *pp) { if (pipe(pp)) perror_exit("xpipe"); }