diff options
author | default <nobody@localhost> | 2023-08-08 19:29:34 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-08 19:29:34 +0200 |
commit | 3e5bb109d14e194958a448a0e2feb55f685afaf2 (patch) | |
tree | fb032c24cef0b1ad6c5c41651fff2be6f203fe92 /utils.c | |
parent | 3611af78d6cec374b75788bc6b01b170bb355f40 (diff) |
Renamed json dump functions to new xs spec.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -194,7 +194,7 @@ int snac_init(const char *basedir) return 1; } - xs_json_dump_pp(srv_config, 4, f); + xs_json_dump(srv_config, 4, f); fclose(f); printf("Done.\n"); @@ -275,7 +275,7 @@ int adduser(const char *uid) return 1; } else { - xs_json_dump_pp(config, 4, f); + xs_json_dump(config, 4, f); fclose(f); } @@ -290,7 +290,7 @@ int adduser(const char *uid) return 1; } else { - xs_json_dump_pp(key, 4, f); + xs_json_dump(key, 4, f); fclose(f); } @@ -316,7 +316,7 @@ int resetpwd(snac *snac) snac->config = xs_dict_set(snac->config, "passwd", hashed_pwd); if ((f = fopen(fn, "w")) != NULL) { - xs_json_dump_pp(snac->config, 4, f); + xs_json_dump(snac->config, 4, f); fclose(f); printf("New password for user %s is %s\n", snac->uid, clear_pwd); |