aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/stlfile.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-17 21:23:49 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-17 21:23:49 +0200
commit130fc6d97bce96bc042bdaa6329b82d00f6316d5 (patch)
treea7a74dfc5536169997a6a0b278fa15c8d3cf7462 /service/src/stlfile.c
parent22211a1267f136c4b55bc2298bc9de19d5973f9f (diff)
downloadenowars5-service-stldoctor-130fc6d97bce96bc042bdaa6329b82d00f6316d5.tar.gz
enowars5-service-stldoctor-130fc6d97bce96bc042bdaa6329b82d00f6316d5.zip
renamed to STLDoctor
Diffstat (limited to 'service/src/stlfile.c')
-rw-r--r--service/src/stlfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/src/stlfile.c b/service/src/stlfile.c
index 60f8b40..024f6cb 100644
--- a/service/src/stlfile.c
+++ b/service/src/stlfile.c
@@ -251,7 +251,7 @@ int
parse_file(struct parseinfo *info, char *buf, size_t len)
{
int status;
- const char *tmp;
+ const char *resp;
char *bp;
if (info->valid) free_info(info);
@@ -270,12 +270,12 @@ parse_file(struct parseinfo *info, char *buf, size_t len)
if (status == FAIL) return FAIL;
if (!info->modelname) {
- tmp = ask("Please enter your model name:\n");
- if (strlen(tmp) < 4) {
+ resp = ask("Please enter your model name:\n");
+ if (strlen(resp) < 4) {
fprintf(stderr, "Model name is too short!\n");
return FAIL;
}
- info->modelname = checkp(strdup(tmp));
+ info->modelname = checkp(strdup(resp));
}
info->hash = checkp(strdup(mhash(info->modelname, -1)));