From: William Roberts <william.c.roberts@xxxxxxxxx> Fix this: genusers.c:39:9: warning: unused variable 'len' [-Wunused-variable] size_t len = 0; Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- libsepol/src/genusers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsepol/src/genusers.c b/libsepol/src/genusers.c index 0b98a76..57a9a2e 100644 --- a/libsepol/src/genusers.c +++ b/libsepol/src/genusers.c @@ -36,7 +36,6 @@ static int load_users(struct policydb *policydb, const char *path) { FILE *fp; char *buffer = NULL, *p, *q, oldc; - size_t len = 0; ssize_t nread; unsigned lineno = 0, islist = 0, bit; user_datum_t *usrdatum; @@ -55,6 +54,7 @@ static int load_users(struct policydb *policydb, const char *path) while(fgets(buffer, 255, fp) != NULL) { #else + size_t len = 0; __fsetlocking(fp, FSETLOCKING_BYCALLER); while ((nread = getline(&buffer, &len, fp)) > 0) { #endif -- 1.9.1 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.