From 876037e0ac601c3dd2336a1b963aa2dd4d6065b4 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 31 Oct 2018 15:22:27 +1000 Subject: [PATCH] Fix bug in qwknetftpc and remove debugging output --- utils/qwknet/qwknetftpc.py | 2 +- utils/qwknet/qwktoss.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/qwknet/qwknetftpc.py b/utils/qwknet/qwknetftpc.py index d5bedf5..7a23dae 100644 --- a/utils/qwknet/qwknetftpc.py +++ b/utils/qwknet/qwknetftpc.py @@ -27,7 +27,7 @@ def dostuff(config_file): file.close() os.remove(repfile) print("SENT: " + config.get("Main", "Host") + ".REP") - repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP." + i + repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP." + str(i) i = i + 1 else: break diff --git a/utils/qwknet/qwktoss.c b/utils/qwknet/qwktoss.c index e9eb4de..c84033d 100644 --- a/utils/qwknet/qwktoss.c +++ b/utils/qwknet/qwktoss.c @@ -118,7 +118,6 @@ static char *get_key_value(struct msg_headers_t *header, char *key) { if (header == NULL) return NULL; for (int i=0;iheader_count;i++) { if (strcmp(key, header->headers[i]->key) == 0) { - fprintf(stderr, "%s\n", header->headers[i]->value); return header->headers[i]->value; } }