summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/dln.c b/dln.c
index 55b751223b..af87a2e727 100644
--- a/dln.c
+++ b/dln.c
@@ -107,17 +107,18 @@ int eaccess();
static int
init_funcname_len(buf, file)
char **buf;
- char *file;
+ const char *file;
{
- char *p, *slash;
+ char *p;
+ const char *slash;
int len;
/* Load the file as an object one */
- for (p = file, slash = p-1; *p; p++) /* Find position of last '/' */
+ for (slash = file-1; *file; file++) /* Find position of last '/' */
#ifdef __MACOS__
- if (*p == ':') slash = p;
+ if (*file == ':') slash = file;
#else
- if (*p == '/') slash = p;
+ if (*file == '/') slash = file;
#endif
len = strlen(FUNCNAME_PATTERN) + strlen(slash + 1);