diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-pledge.c | 14 | ||||
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 4 |
2 files changed, 0 insertions, 18 deletions
diff --git a/openbsd-compat/bsd-pledge.c b/openbsd-compat/bsd-pledge.c deleted file mode 100644 index afce3c002..000000000 --- a/openbsd-compat/bsd-pledge.c +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | /* Placed in the public domain. */ | ||
2 | |||
3 | #include "includes.h" | ||
4 | |||
5 | #ifndef HAVE_PLEDGE | ||
6 | |||
7 | /* Stub; real implementations wanted. */ | ||
8 | int | ||
9 | pledge(const char *promises, const char *paths[]) | ||
10 | { | ||
11 | return 0; | ||
12 | } | ||
13 | |||
14 | #endif /* HAVE_PLEDGE */ | ||
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index be7b6877e..8cc8a11b7 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -264,10 +264,6 @@ int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t, | |||
264 | void explicit_bzero(void *p, size_t n); | 264 | void explicit_bzero(void *p, size_t n); |
265 | #endif | 265 | #endif |
266 | 266 | ||
267 | #ifndef HAVE_PLEDGE | ||
268 | int pledge(const char *promises, const char *paths[]); | ||
269 | #endif /* HAVE_PLEDGE */ | ||
270 | |||
271 | void *xmmap(size_t size); | 267 | void *xmmap(size_t size); |
272 | char *xcrypt(const char *password, const char *salt); | 268 | char *xcrypt(const char *password, const char *salt); |
273 | char *shadow_pw(struct passwd *pw); | 269 | char *shadow_pw(struct passwd *pw); |