diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | service/src/Makefile | 6 | ||||
| -rw-r--r-- | service/src/main.c (renamed from service/src/printdoc.c) | 0 | ||||
| -rw-r--r-- | service/src/msgs/welcome | 2 | ||||
| -rwxr-xr-x | service/src/stldoctor | bin | 0 -> 46736 bytes | |||
| -rw-r--r-- | service/src/stlfile.c | 8 |
6 files changed, 11 insertions, 11 deletions
@@ -1,5 +1,5 @@ -Enowars5 PrintDoc -================= +Enowars5 STLDoctor +================== -An stl file info service. +An STL file inspection service 🔍. 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 Binary files differnew file mode 100755 index 0000000..6038d97 --- /dev/null +++ b/service/src/stldoctor 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))); |
