summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-22 11:44:52 -0400
committermidipix <writeonce@midipix.org>2016-04-23 09:25:16 -0400
commita07c9b90955d1297020039d4dcb7670cb747f905 (patch)
tree40ec26cd4d83b48ad8e59e440edc17f20cd88813 /src
parentf633074f6dae55ae9599c11a085f824c67881676 (diff)
downloadslibtool-a07c9b90955d1297020039d4dcb7670cb747f905.tar.bz2
slibtool-a07c9b90955d1297020039d4dcb7670cb747f905.tar.xz
driver: slbt_init_host_params(): fix typo.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1e8d958..5013ad0 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -288,7 +288,7 @@ static int slbt_init_host_params(
struct slbt_host_params * cfgmeta)
{
size_t toollen;
- char * slash;
+ char * dash;
const char * machine;
bool ftarget = false;
bool fhost = false;
@@ -307,8 +307,8 @@ static int slbt_init_host_params(
if (!(drvhost->host = strdup(cctx->cargv[0])))
return -1;
- slash = strrchr(drvhost->host,'-');
- *slash = 0;
+ dash = strrchr(drvhost->host,'-');
+ *dash = 0;
host->host = drvhost->host;
cfgmeta->host = cfgcompiler;
fcompiler = true;
@@ -336,24 +336,24 @@ static int slbt_init_host_params(
cfgmeta->flavor = cfgmachine;
}
- slash = strrchr(machine,'-');
+ dash = strrchr(machine,'-');
cfgmeta->flavor = cfghost;
- if ((slash && !strcmp(slash,"-bsd")) || strstr(machine,"-bsd-"))
+ if ((dash && !strcmp(dash,"-bsd")) || strstr(machine,"-bsd-"))
host->flavor = "bsd";
- else if ((slash && !strcmp(slash,"-cygwin")) || strstr(machine,"-cygwin-"))
+ else if ((dash && !strcmp(dash,"-cygwin")) || strstr(machine,"-cygwin-"))
host->flavor = "cygwin";
- else if ((slash && !strcmp(slash,"-darwin")) || strstr(machine,"-darwin-"))
+ else if ((dash && !strcmp(dash,"-darwin")) || strstr(machine,"-darwin-"))
host->flavor = "darwin";
- else if ((slash && !strcmp(slash,"-linux")) || strstr(machine,"-linux-"))
+ else if ((dash && !strcmp(dash,"-linux")) || strstr(machine,"-linux-"))
host->flavor = "linux";
- else if ((slash && !strcmp(slash,"-midipix")) || strstr(machine,"-midipix-"))
+ else if ((dash && !strcmp(dash,"-midipix")) || strstr(machine,"-midipix-"))
host->flavor = "midipix";
- else if ((slash && !strcmp(slash,"-mingw")) || strstr(machine,"-mingw-"))
+ else if ((dash && !strcmp(dash,"-mingw")) || strstr(machine,"-mingw-"))
host->flavor = "mingw";
- else if ((slash && !strcmp(slash,"-mingw32")) || strstr(machine,"-mingw32-"))
+ else if ((dash && !strcmp(dash,"-mingw32")) || strstr(machine,"-mingw32-"))
host->flavor = "mingw";
- else if ((slash && !strcmp(slash,"-mingw64")) || strstr(machine,"-mingw64-"))
+ else if ((dash && !strcmp(dash,"-mingw64")) || strstr(machine,"-mingw64-"))
host->flavor = "mingw";
else {
host->flavor = "default";