12345678910111213141516171819 |
- $OpenBSD: patch-libframe_misc_c,v 1.1 2016/03/17 21:07:32 naddy Exp $
- --- libframe/misc.c.orig Thu Mar 17 21:21:48 2016
- +++ libframe/misc.c Thu Mar 17 21:27:16 2016
- @@ -1,4 +1,5 @@
- /* Copyright (c) 1998 Lucent Technologies - All rights reserved. */
- +#include <errno.h>
- #include <u.h>
- #include <libc.h>
- #include <pwd.h>
- @@ -22,8 +23,6 @@ fprint(int fd, char *z, ...)
-
- int errstr(char *buf)
- {
- - extern int errno;
- -
- strncpy(buf, strerror(errno), ERRLEN);
- return 1;
- }
|