aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/src/Makefile6
-rw-r--r--service/src/main.c (renamed from service/src/printdoc.c)0
-rw-r--r--service/src/msgs/welcome2
-rwxr-xr-xservice/src/stldoctorbin0 -> 46736 bytes
-rw-r--r--service/src/stlfile.c8
5 files changed, 8 insertions, 8 deletions
diff --git a/service/src/Makefile b/service/src/Makefile
index 6b981a2..c46988a 100644
--- a/service/src/Makefile
+++ b/service/src/Makefile
@@ -2,13 +2,13 @@ CFLAGS = -g -I .
.PHONY: all clean
-all: printdoc
+all: stldoctor
clean:
- rm -f printdoc *.o
+ rm -f stldoctor *.o
%.o: %.c %.h
$(CC) -c -o $@ $< $(CFLAGS) $(LDLIBS)
-printdoc: printdoc.c stlfile.o util.o
+stldoctor: main.c stlfile.o util.o
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
diff --git a/service/src/printdoc.c b/service/src/main.c
index 1e549c9..1e549c9 100644
--- a/service/src/printdoc.c
+++ b/service/src/main.c
diff --git a/service/src/msgs/welcome b/service/src/msgs/welcome
index b4eb256..2f77bfb 100644
--- a/service/src/msgs/welcome
+++ b/service/src/msgs/welcome
@@ -1,2 +1,2 @@
-Welcome to PrintDoc!
+Welcome to STLDoctor!
Submit a stl file and we'll analyze it!
diff --git a/service/src/stldoctor b/service/src/stldoctor
new file mode 100755
index 0000000..6038d97
--- /dev/null
+++ b/service/src/stldoctor
Binary files differ
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)));