0001-Remove-fgets-extern-declaration.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 24d10919b4bc5e37a2d80b274d2cd2ee77b03549 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Mon, 13 Jan 2020 14:25:47 -0800
  4. Subject: [PATCH] Remove fgets() extern declaration
  5. These sources already include <stdio.h> which should bring the correct
  6. declaration
  7. Upstream-Status: Pending
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. hosts_access.c | 1 -
  11. misc.c | 2 --
  12. 2 files changed, 3 deletions(-)
  13. diff --git a/hosts_access.c b/hosts_access.c
  14. index 329b35e..0133e5e 100644
  15. --- a/hosts_access.c
  16. +++ b/hosts_access.c
  17. @@ -44,7 +44,6 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
  18. #include <netdb.h>
  19. #endif
  20. -extern char *fgets();
  21. extern int errno;
  22. #ifndef INADDR_NONE
  23. diff --git a/misc.c b/misc.c
  24. index 74ca319..9a5e73a 100644
  25. --- a/misc.c
  26. +++ b/misc.c
  27. @@ -18,8 +18,6 @@ static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29";
  28. #include "tcpd.h"
  29. -extern char *fgets();
  30. -
  31. #ifndef INADDR_NONE
  32. #define INADDR_NONE (-1) /* XXX should be 0xffffffff */
  33. #endif
  34. --
  35. 2.24.1