2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-02 23:35:36 +00:00

atobool -> sudo_strtobool

atoid-> sudo_strtoid
atomode -> sudo_strtomode
This commit is contained in:
Todd C. Miller
2014-06-27 14:53:54 -06:00
parent d6948f5a4a
commit a8fa112a53
24 changed files with 120 additions and 120 deletions

View File

@@ -375,7 +375,7 @@ print_member_json(FILE *fp, struct member *m, enum word_type word_type,
value.u.string++;
typestr = "nonunixgroup";
if (*value.u.string == '#') {
id = atoid(m->name + 3, NULL, NULL, &errstr);
id = sudo_strtoid(m->name + 3, NULL, NULL, &errstr);
if (errstr != NULL) {
sudo_warnx("internal error: non-Unix group ID %s: \"%s\"",
errstr, m->name);
@@ -388,7 +388,7 @@ print_member_json(FILE *fp, struct member *m, enum word_type word_type,
} else {
typestr = "usergroup";
if (*value.u.string == '#') {
id = atoid(m->name + 2, NULL, NULL, &errstr);
id = sudo_strtoid(m->name + 2, NULL, NULL, &errstr);
if (errstr != NULL) {
sudo_warnx("internal error: group ID %s: \"%s\"",
errstr, m->name);
@@ -422,7 +422,7 @@ print_member_json(FILE *fp, struct member *m, enum word_type word_type,
case TYPE_USERNAME:
typestr = "username";
if (*value.u.string == '#') {
id = atoid(m->name + 1, NULL, NULL, &errstr);
id = sudo_strtoid(m->name + 1, NULL, NULL, &errstr);
if (errstr != NULL) {
sudo_warnx("internal error: user ID %s: \"%s\"",
errstr, m->name);