Fix bug in qwknetftpc and remove debugging output

This commit is contained in:
Andrew Pamment 2018-10-31 15:22:27 +10:00
parent 99feabb6e5
commit 876037e0ac
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def dostuff(config_file):
file.close() file.close()
os.remove(repfile) os.remove(repfile)
print("SENT: " + config.get("Main", "Host") + ".REP") 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 i = i + 1
else: else:
break break

View File

@ -118,7 +118,6 @@ static char *get_key_value(struct msg_headers_t *header, char *key) {
if (header == NULL) return NULL; if (header == NULL) return NULL;
for (int i=0;i<header->header_count;i++) { for (int i=0;i<header->header_count;i++) {
if (strcmp(key, header->headers[i]->key) == 0) { if (strcmp(key, header->headers[i]->key) == 0) {
fprintf(stderr, "%s\n", header->headers[i]->value);
return header->headers[i]->value; return header->headers[i]->value;
} }
} }