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:
Eric Paris 2012-06-21 11:18:22 -04:00
parent 12e2a0f9fc
commit 5b344c112a

View file

@ -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);