summaryrefslogtreecommitdiff
path: root/binutils/dllwrap.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-08-02 08:14:17 +0000
committerNick Clifton <nickc@redhat.com>2004-08-02 08:14:17 +0000
commitdac1b91cbf4cd0980f092e03c50f293bd365a3bd (patch)
treefdbb335d620c7b1bb9801fb89e6f30908000e3df /binutils/dllwrap.c
parent20c4e4b25f00395fef7d4ee3c9ec8056aa49f0fb (diff)
downloadbinutils-redhat-dac1b91cbf4cd0980f092e03c50f293bd365a3bd.tar.gz
(deduce_name): Fix typos introduced when program_name was renamed to prog_name.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r--binutils/dllwrap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c
index 4b53511e66..577772f1cd 100644
--- a/binutils/dllwrap.c
+++ b/binutils/dllwrap.c
@@ -253,7 +253,7 @@ deduce_name (const char * name)
dash = NULL;
slash = NULL;
- for (cp = name; *cp != '\0'; ++cp)
+ for (cp = prog_name; *cp != '\0'; ++cp)
{
if (*cp == '-')
dash = cp;
@@ -272,17 +272,17 @@ deduce_name (const char * name)
cmd = NULL;
if (dash != NULL)
- /* First, try looking for a prefixed PROG_NAME in the
- PROGRAM_NAME directory, with the same prefix as PROGRAM_NAME. */
- cmd = look_for_prog (name, name, dash - name + 1);
+ /* First, try looking for a prefixed NAME in the
+ PROG_NAME directory, with the same prefix as PROG_NAME. */
+ cmd = look_for_prog (name, prog_name, dash - prog_name + 1);
if (slash != NULL && cmd == NULL)
- /* Next, try looking for a PROG_NAME in the same directory as
+ /* Next, try looking for a NAME in the same directory as
that of this program. */
- cmd = look_for_prog (name, name, slash - name + 1);
+ cmd = look_for_prog (name, prog_name, slash - prog_name + 1);
if (cmd == NULL)
- /* Just return PROG_NAME as is. */
+ /* Just return NAME as is. */
cmd = xstrdup (name);
return cmd;