From 8fb301e9abd2165ed1171968ae9cf1a47935dd9c Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 7 Jun 2005 18:26:28 +0000 Subject: [PATCH] 32 is space. ascii <= 32 is all whitespace --- refpolicy/support/fc_sort.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/refpolicy/support/fc_sort.c b/refpolicy/support/fc_sort.c index 4ebf1e5e..f999252d 100644 --- a/refpolicy/support/fc_sort.c +++ b/refpolicy/support/fc_sort.c @@ -310,7 +310,7 @@ int main( int argc, char *argv[]) /* Get rid of whitespace from the front of the line. */ i = 0; - while( line_buf[i] && line_buf[i] <= 32 ) i++; + while( line_buf[i] && line_buf[i] <= ' ' ) i++; /* Check if the line isn't empty and isn't a comment */ if( line_buf[i] && line_buf[i] != '#' ) { @@ -324,7 +324,7 @@ int main( int argc, char *argv[]) /* Parse out the regular expression from the line. */ start = i; - while( line_buf[i] > 32 )i++; + while( line_buf[i] > ' ' )i++; finish = i; /* Allocate a character array to hold the regular @@ -344,7 +344,7 @@ int main( int argc, char *argv[]) /* Get rid of whitespace after the regular * expression. */ - while( line_buf[i] <= 32 ) i++; + while( line_buf[i] <= ' ' ) i++; /* Parse out the type from the line (if it * is there). */ @@ -364,12 +364,12 @@ int main( int argc, char *argv[]) temp->type[2] = 0; /* Get rid of whitespace after the type. */ - while( line_buf[i] <= 32 ) i++; + while( line_buf[i] <= ' ' ) i++; } /* Parse out the context from the line. */ start = i; - while( line_buf[i] > 32 ) i++; + while( line_buf[i] > ' ' ) i++; finish = i; /* Allocate a character array to hold the context. */