diff options
| author | beck <> | 2014-04-18 21:11:00 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-18 21:11:00 +0000 |
| commit | 9b3729543c77ca70f93785b9db4543b297104786 (patch) | |
| tree | 08077f4870903dd9ea491499c1d25a0a6693a465 /src/lib/libcrypto/err/err.c | |
| parent | 5887e1a279a1b1e16374488b0d18cce4babacfe4 (diff) | |
| download | openbsd-9b3729543c77ca70f93785b9db4543b297104786.tar.gz openbsd-9b3729543c77ca70f93785b9db4543b297104786.tar.bz2 openbsd-9b3729543c77ca70f93785b9db4543b297104786.zip | |
Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developers
they had resorted to manually protyping read(2) instead of incredible amount of
preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just
include <unistd.h> and we don't need to do this.. While we're at it flense
out _OSD_POSIX and __DGJPP__ cruft.
ok krw@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/err/err.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index afc3130d08..27a19bc52c 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
| @@ -697,25 +697,6 @@ void ERR_put_error(int lib, int func, int reason, const char *file, | |||
| 697 | { | 697 | { |
| 698 | ERR_STATE *es; | 698 | ERR_STATE *es; |
| 699 | 699 | ||
| 700 | #ifdef _OSD_POSIX | ||
| 701 | /* In the BS2000-OSD POSIX subsystem, the compiler generates | ||
| 702 | * path names in the form "*POSIX(/etc/passwd)". | ||
| 703 | * This dirty hack strips them to something sensible. | ||
| 704 | * @@@ We shouldn't modify a const string, though. | ||
| 705 | */ | ||
| 706 | if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) { | ||
| 707 | char *end; | ||
| 708 | |||
| 709 | /* Skip the "*POSIX(" prefix */ | ||
| 710 | file += sizeof("*POSIX(")-1; | ||
| 711 | end = &file[strlen(file)-1]; | ||
| 712 | if (*end == ')') | ||
| 713 | *end = '\0'; | ||
| 714 | /* Optional: use the basename of the path only. */ | ||
| 715 | if ((end = strrchr(file, '/')) != NULL) | ||
| 716 | file = &end[1]; | ||
| 717 | } | ||
| 718 | #endif | ||
| 719 | es=ERR_get_state(); | 700 | es=ERR_get_state(); |
| 720 | 701 | ||
| 721 | es->top=(es->top+1)%ERR_NUM_ERRORS; | 702 | es->top=(es->top+1)%ERR_NUM_ERRORS; |
