libselinux: seusers: remove unused lineno
The lineno variable was being incremented, but nothing was being done with it. Remove it. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
12e2a0f9fc
commit
5b344c112a
1 changed files with 0 additions and 3 deletions
|
@ -266,7 +266,6 @@ int getseuser(const char *username, const char *service,
|
|||
char *level = NULL;
|
||||
char *buffer = NULL;
|
||||
size_t size = 0;
|
||||
size_t lineno = 0;
|
||||
char *rec = NULL;
|
||||
char *path=NULL;
|
||||
FILE *fp = NULL;
|
||||
|
@ -277,8 +276,6 @@ int getseuser(const char *username, const char *service,
|
|||
if (fp == NULL) goto err;
|
||||
__fsetlocking(fp, FSETLOCKING_BYCALLER);
|
||||
while (getline(&buffer, &size, fp) > 0) {
|
||||
++lineno;
|
||||
|
||||
if (strncmp(buffer, "*:", 2) == 0) {
|
||||
free(rec);
|
||||
rec = strdup(buffer);
|
||||
|
|
Loading…
Reference in a new issue