remove comma

This commit is contained in:
Andrew Pamment 2018-05-24 14:26:12 +10:00
parent 268ad41ace
commit 75cb49e46d
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ int main(int argc, char **argv) {
// add config line // add config line
fptr = fopen(argv[1], "a"); fptr = fopen(argv[1], "a");
fprintf(fptr, "MSGAREA, %d, %d, %s\n", msg.area, msg.daddr, argv[5]); fprintf(fptr, "MSGAREA %d, %d, %s\n", msg.area, msg.daddr, argv[5]);
fclose(fptr); fclose(fptr);
} else if (strcasecmp(argv[2], "REMOVE") == 0) { } else if (strcasecmp(argv[2], "REMOVE") == 0) {

View File

@ -285,7 +285,7 @@ void update_config_file_area(int areaid) {
trimwhitespace(bufferw, 256, ptr); trimwhitespace(bufferw, 256, ptr);
id = atoi(bufferw); id = atoi(bufferw);
if (id == areas[areaid]->id) { if (id == areas[areaid]->id) {
fprintf(fptr2, "MSGAREA, %d, %d, %s", areas[areaid]->id, areas[areaid]->hub, areas[areaid]->basedir); fprintf(fptr2, "MSGAREA %d, %d, %s", areas[areaid]->id, areas[areaid]->hub, areas[areaid]->basedir);
for (i=0;i<areas[areaid]->link_count;i++) { for (i=0;i<areas[areaid]->link_count;i++) {
fprintf(fptr2, ", %d", areas[areaid]->links[i]); fprintf(fptr2, ", %d", areas[areaid]->links[i]);
} }