summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index 086fdf2..bcd9bd7 100644
--- a/utils.c
+++ b/utils.c
@@ -194,7 +194,7 @@ int snac_init(const char *basedir)
194 return 1; 194 return 1;
195 } 195 }
196 196
197 xs_json_dump_pp(srv_config, 4, f); 197 xs_json_dump(srv_config, 4, f);
198 fclose(f); 198 fclose(f);
199 199
200 printf("Done.\n"); 200 printf("Done.\n");
@@ -275,7 +275,7 @@ int adduser(const char *uid)
275 return 1; 275 return 1;
276 } 276 }
277 else { 277 else {
278 xs_json_dump_pp(config, 4, f); 278 xs_json_dump(config, 4, f);
279 fclose(f); 279 fclose(f);
280 } 280 }
281 281
@@ -290,7 +290,7 @@ int adduser(const char *uid)
290 return 1; 290 return 1;
291 } 291 }
292 else { 292 else {
293 xs_json_dump_pp(key, 4, f); 293 xs_json_dump(key, 4, f);
294 fclose(f); 294 fclose(f);
295 } 295 }
296 296
@@ -316,7 +316,7 @@ int resetpwd(snac *snac)
316 snac->config = xs_dict_set(snac->config, "passwd", hashed_pwd); 316 snac->config = xs_dict_set(snac->config, "passwd", hashed_pwd);
317 317
318 if ((f = fopen(fn, "w")) != NULL) { 318 if ((f = fopen(fn, "w")) != NULL) {
319 xs_json_dump_pp(snac->config, 4, f); 319 xs_json_dump(snac->config, 4, f);
320 fclose(f); 320 fclose(f);
321 321
322 printf("New password for user %s is %s\n", snac->uid, clear_pwd); 322 printf("New password for user %s is %s\n", snac->uid, clear_pwd);