libsepol: fix unused variable 'size' on mac build

Fix this on Mac build:
genbools.c:71:9: warning: unused variable 'size' [-Wunused-variable]
        size_t size = 0;
               ^
Signed-off-by: William Roberts <william.c.roberts@intel.com>
This commit is contained in:
William Roberts 2016-09-23 13:55:50 -07:00 committed by Stephen Smalley
parent 2059435f9a
commit e729fbe9b4
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,6 @@ static int load_booleans(struct policydb *policydb, const char *path,
{ {
FILE *boolf; FILE *boolf;
char *buffer = NULL; char *buffer = NULL;
size_t size = 0;
char localbools[BUFSIZ]; char localbools[BUFSIZ];
char name[BUFSIZ]; char name[BUFSIZ];
int val; int val;
@ -87,6 +86,7 @@ static int load_booleans(struct policydb *policydb, const char *path,
while(fgets(buffer, 255, boolf) != NULL) { while(fgets(buffer, 255, boolf) != NULL) {
#else #else
size_t size = 0;
while (getline(&buffer, &size, boolf) > 0) { while (getline(&buffer, &size, boolf) > 0) {
#endif #endif
int ret = process_boolean(buffer, name, sizeof(name), &val); int ret = process_boolean(buffer, name, sizeof(name), &val);