summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-19 18:56:58 -0400
committermidipix <writeonce@midipix.org>2016-03-19 18:56:58 -0400
commit014f4cca59d94172de0120042207b15dbb01b788 (patch)
tree76e3eece4c9d5c294d2cf6c55f9fda7d0500f6f3 /src/logic/slbt_exec_ctx.c
parentf0c096a6c41b51fe344423347910b6c299c3bbcd (diff)
downloadslibtool-014f4cca59d94172de0120042207b15dbb01b788.tar.bz2
slibtool-014f4cca59d94172de0120042207b15dbb01b788.tar.xz
slbt_get_exec_ctx(): rename variable in anticipation of the next commit.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index fcab308..6e794f8 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -125,7 +125,7 @@ int slbt_get_exec_ctx(
struct slbt_exec_ctx_impl * ictx;
char ** parg;
char * ch;
- char * slash;
+ char * mark;
const char * ref;
int i;
@@ -145,15 +145,15 @@ int slbt_get_exec_ctx(
? dctx->cctx->output
: ictx->ctx.csrc;
- if (ref && !ictx->ctx.csrc && (slash = strrchr(ref,'/'))) {
+ if (ref && !ictx->ctx.csrc && (mark = strrchr(ref,'/'))) {
ictx->ctx.ldirname = ch;
strcpy(ch,ref);
- ch += slash - ref;
+ ch += mark - ref;
ch += sprintf(ch,"%s","/.libs/");
ch++;
ictx->ctx.lbasename = ch;
- ch += sprintf(ch,"%s",++slash);
+ ch += sprintf(ch,"%s",++mark);
ch++;
} else if (ref) {
ictx->ctx.ldirname = ch;
@@ -161,8 +161,8 @@ int slbt_get_exec_ctx(
ch++;
ictx->ctx.lbasename = ch;
- slash = strrchr(ref,'/');
- ch += sprintf(ch,"%s",slash ? ++slash : ref);
+ mark = strrchr(ref,'/');
+ ch += sprintf(ch,"%s",mark ? ++mark : ref);
ch++;
}