diff options
author | Brian White <mscdex@mscdex.net> | 2013-04-02 20:27:19 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-02 20:44:14 +0400 |
commit | 38106da7cddee38453a0c2393bd19e2d2bd6228b (patch) | |
tree | c2aecabe9bd2e7989b43880aa03c55e74434e623 /src | |
parent | 234fb122bbdf87bb33d8fba41165ecfa92031b71 (diff) |
src: remove unused variables
Diffstat (limited to 'src')
-rw-r--r-- | src/node.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node.cc b/src/node.cc index 8ba577582eb..391a17959ca 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1513,12 +1513,11 @@ static uid_t uid_by_name(const char* name) { struct passwd pwd; struct passwd* pp; char buf[8192]; - int rc; errno = 0; pp = NULL; - if ((rc = getpwnam_r(name, &pwd, buf, sizeof(buf), &pp)) == 0 && pp != NULL) { + if (getpwnam_r(name, &pwd, buf, sizeof(buf), &pp) == 0 && pp != NULL) { return pp->pw_uid; } @@ -1551,12 +1550,11 @@ static gid_t gid_by_name(const char* name) { struct group pwd; struct group* pp; char buf[8192]; - int rc; errno = 0; pp = NULL; - if ((rc = getgrnam_r(name, &pwd, buf, sizeof(buf), &pp)) == 0 && pp != NULL) { + if (getgrnam_r(name, &pwd, buf, sizeof(buf), &pp) == 0 && pp != NULL) { return pp->gr_gid; } |