]> git.meshlink.io Git - meshlink/blobdiff - src/conf.c
Code reformatting.
[meshlink] / src / conf.c
index 771abe58600ca788b6dbc19ab929a2c6e444b17b..5d5c46c144dd14fcd8576f2393a07cdf770a5ed9 100644 (file)
@@ -431,12 +431,12 @@ bool modify_config_file(struct meshlink_handle *mesh, const char *name, const ch
        char tmpname[PATH_MAX];
        bool error = false;
 
-       if (snprintf(filename, sizeof(filename), "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name) >= PATH_MAX) {
+       if(snprintf(filename, sizeof(filename), "%s" SLASH "hosts" SLASH "%s", mesh->confbase, name) >= PATH_MAX) {
                logger(mesh, MESHLINK_ERROR, "Filename too long: %s" SLASH "hosts" SLASH "%s", mesh->confbase, name);
                return false;
        }
 
-       if (snprintf(tmpname, sizeof(tmpname), "%s.tmp", filename) >= PATH_MAX) {
+       if(snprintf(tmpname, sizeof(tmpname), "%s.tmp", filename) >= PATH_MAX) {
                logger(mesh, MESHLINK_ERROR, "Filename too long: %s.tmp", filename);
                return false;
        }