This is the 21st century, and yes we have a basename(3) libcall in string.h. This attached patch fixes that so -Wshadow passes:
Signed-off-by: Garrett Cooper <[email protected]> Index: testcases/kernel/fs/fsx-linux/fsx-linux.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/fsx-linux/fsx-linux.c,v retrieving revision 1.12 diff -r1.12 fsx-linux.c 449,455d448 < static const char *basename(const char *path) < { < char *c = strrchr(path, '/'); < < return c ? c++ : path; < } <
fix_basename_decl.diff
Description: Binary data
------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
