patch-libframe_misc_c 476 B

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