logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

1001-Use-prototype-for-getenv-declaration.patch (603B)


  1. From 4919efdefac11325db27c6a848e381a7cc28eacd Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 2 Apr 2026 17:36:09 -0700
  4. Subject: [PATCH] Use prototype for getenv declaration
  5. ---
  6. lib/fnmatch.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/lib/fnmatch.c b/lib/fnmatch.c
  9. index 01da376..cb1c856 100644
  10. --- a/lib/fnmatch.c
  11. +++ b/lib/fnmatch.c
  12. @@ -121,7 +121,7 @@ USA. */
  13. whose names are inconsistent. */
  14. # if !defined _LIBC && !defined getenv
  15. -extern char *getenv ();
  16. +extern char *getenv (const char *);
  17. # endif
  18. # ifndef errno
  19. --
  20. 2.49.0