Skip to content

Commit

Permalink
ds json REFACTOR plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Humblesaw committed Apr 18, 2024
1 parent 965ae46 commit d730abc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/plugins/common_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#define _GNU_SOURCE

#include "compat.h"
#include "common_json.h"
#include "compat.h"

#include <assert.h>
#include <errno.h>
Expand Down Expand Up @@ -314,7 +314,7 @@ srpjson_get_pwd(const char *plg_name, uid_t *uid, char **user)
*user, strerror(r));
} else {
srplg_log_errinfo(&err_info, plg_name, NULL, SR_ERR_INTERNAL, "Retrieving UID \"%lu\" passwd entry failed (%s).",
(unsigned long int)*uid, strerror(r));
(unsigned long)*uid, strerror(r));
}
goto cleanup;
} else if (!pwd_p) {
Expand All @@ -323,7 +323,7 @@ srpjson_get_pwd(const char *plg_name, uid_t *uid, char **user)
"Retrieving user \"%s\" passwd entry failed (No such user).", *user);
} else {
srplg_log_errinfo(&err_info, plg_name, NULL, SR_ERR_NOT_FOUND,
"Retrieving UID \"%lu\" passwd entry failed (No such UID).", (unsigned long int)*uid);
"Retrieving UID \"%lu\" passwd entry failed (No such UID).", (unsigned long)*uid);
}
goto cleanup;
}
Expand Down Expand Up @@ -390,7 +390,7 @@ srpjson_get_grp(const char *plg_name, gid_t *gid, char **group)
*group, strerror(r));
} else {
srplg_log_errinfo(&err_info, plg_name, NULL, SR_ERR_INTERNAL, "Retrieving GID \"%lu\" grp entry failed (%s).",
(unsigned long int)*gid, strerror(r));
(unsigned long)*gid, strerror(r));
}
goto cleanup;
} else if (!grp_p) {
Expand All @@ -399,7 +399,7 @@ srpjson_get_grp(const char *plg_name, gid_t *gid, char **group)
"Retrieving group \"%s\" grp entry failed (No such group).", *group);
} else {
srplg_log_errinfo(&err_info, plg_name, NULL, SR_ERR_NOT_FOUND,
"Retrieving GID \"%lu\" grp entry failed (No such GID).", (unsigned long int)*gid);
"Retrieving GID \"%lu\" grp entry failed (No such GID).", (unsigned long)*gid);
}
goto cleanup;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ds_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ srpds_json_store(const struct lys_module *mod, sr_datastore_t ds, const struct l
/* must exist */
break;
case SR_DS_RUNNING:
/* must exist except for case when all the data were disabled by a feature, which has just been enabled */
/* must exist except for case when all the data were disabled by a feature, which has just been enabled */
/* fallthrough */
case SR_DS_CANDIDATE:
case SR_DS_OPERATIONAL:
Expand Down

0 comments on commit d730abc

Please sign in to comment.