From 31566b5d93688a237939a30da4b2bad560b241e1 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 18 Oct 2005 18:22:10 +0000 Subject: [PATCH] avoid potential conflict with basename() defined in strings.h --- lib/common/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/input.c b/lib/common/input.c index abfa4b62f..c4275eb5d 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -116,13 +116,13 @@ static char *getFlagOpt(int argc, char **argv, int *idx) return 0; } -/* basename: +/* dotneato_basename: * Partial implementation of real basename. * Skip over any trailing slashes or backslashes; then * find next (back)slash moving left; return string to the right. * If no next slash is found, return the whole string. */ -static char* basename (char* path) +static char* dotneato_basename (char* path) { char* s = path; if (*s == '\0') return path; /* empty string */ @@ -152,7 +152,7 @@ void dotneato_args_initialize(GVC_t * gvc, int argc, char **argv) if (Config) exit (0); - CmdName = basename(argv[0]); + CmdName = dotneato_basename(argv[0]); i = gvlayout_select(gvc, CmdName); if (i == NO_SUPPORT) gvlayout_select(gvc, "dot"); -- 2.40.0