Skip to content
Snippets Groups Projects
  1. Oct 19, 2012
  2. Oct 16, 2012
  3. Oct 15, 2012
  4. Oct 04, 2012
  5. Sep 26, 2012
  6. Sep 24, 2012
  7. Sep 18, 2012
  8. Sep 02, 2012
  9. Aug 23, 2012
  10. Aug 10, 2012
  11. Jul 27, 2012
  12. Jul 20, 2012
  13. Jul 08, 2012
  14. Jul 07, 2012
  15. Jul 02, 2012
    • Andreas Bießmann's avatar
      tools/mkenvimage.c: fix basename(3) usage · 558cd995
      Andreas Bießmann authored
      
      Use the POSIX variant of basename due to BSD systems (e.g. OS X) do not provide
      GNU version of basename(3). It is save to use the POSIX variant here cause we do
      never use argv[0] later on which may be modified by the basename(3) POSIX
      variant.
      On systems providing GNU variant the GNU variant should be used since string.h
      is included before libgen.h. Therefore let the _GNU_SOURCE as is.
      
      This patch fixes following warning (on OS X):
      ---8<---
      mkenvimage.c: In function ‘main’:
      mkenvimage.c:105: warning: implicit declaration of function ‘basename’
      mkenvimage.c:105: warning: assignment makes pointer from integer without a cast
      --->8---
      
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      cc: Keith Mok <ek9852@gmail.com>
      558cd995
  16. Jun 21, 2012
  17. Jun 19, 2012
  18. May 15, 2012
  19. Apr 30, 2012
Loading