remove comma
This commit is contained in:
parent
268ad41ace
commit
75cb49e46d
@ -303,7 +303,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// add config line
|
||||
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);
|
||||
|
||||
} else if (strcasecmp(argv[2], "REMOVE") == 0) {
|
||||
|
@ -285,7 +285,7 @@ void update_config_file_area(int areaid) {
|
||||
trimwhitespace(bufferw, 256, ptr);
|
||||
id = atoi(bufferw);
|
||||
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++) {
|
||||
fprintf(fptr2, ", %d", areas[areaid]->links[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user