diff options
author | 2017-07-28 08:26:12 +0000 | |
---|---|---|
committer | 2017-07-28 08:26:12 +0000 | |
commit | c3d06a32ae101e66e5f91584bf2c64d053884853 (patch) | |
tree | a5bac71ce1b648311cafa628122bfc108ea3ff74 | |
parent | make warns about POST_INSTALL being empty. (diff) | |
download | wireguard-openbsd-c3d06a32ae101e66e5f91584bf2c64d053884853.tar.xz wireguard-openbsd-c3d06a32ae101e66e5f91584bf2c64d053884853.zip |
provide missing prototypes
this may actually result in bogus error messages, because int != char*
okay jca@
-rw-r--r-- | gnu/lib/libiberty/include/pex-protos.h | 16 | ||||
-rw-r--r-- | gnu/lib/libiberty/src/pex-common.c | 1 | ||||
-rw-r--r-- | gnu/lib/libiberty/src/pexecute.c | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/gnu/lib/libiberty/include/pex-protos.h b/gnu/lib/libiberty/include/pex-protos.h new file mode 100644 index 00000000000..8086602f0d8 --- /dev/null +++ b/gnu/lib/libiberty/include/pex-protos.h @@ -0,0 +1,16 @@ +#if !defined(PEX_PROTOS_H) +#define PEX_PROTOS_H + +struct pex_obj; + +extern const char * +pex_run (struct pex_obj *obj, int flags, const char *executable, + char * const * argv, const char *orig_outname, const char *errname, + int *err); + +extern int +pex_get_status (struct pex_obj *obj, int count, int *vector); + +extern void +pex_free (struct pex_obj *obj); +#endif diff --git a/gnu/lib/libiberty/src/pex-common.c b/gnu/lib/libiberty/src/pex-common.c index bb127f2ed77..bc0575d63e8 100644 --- a/gnu/lib/libiberty/src/pex-common.c +++ b/gnu/lib/libiberty/src/pex-common.c @@ -21,6 +21,7 @@ Boston, MA 02110-1301, USA. */ #include "config.h" #include "libiberty.h" #include "pex-common.h" +#include "pex-protos.h" #include <stdio.h> #include <errno.h> diff --git a/gnu/lib/libiberty/src/pexecute.c b/gnu/lib/libiberty/src/pexecute.c index 97f157447b7..728a62a366b 100644 --- a/gnu/lib/libiberty/src/pexecute.c +++ b/gnu/lib/libiberty/src/pexecute.c @@ -24,6 +24,7 @@ Boston, MA 02110-1301, USA. */ #include "config.h" #include "libiberty.h" +#include "pex-protos.h" #ifdef HAVE_STDLIB_H #include <stdlib.h> |