diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-11 19:17:56 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-11 19:17:56 +0545 |
commit | 97bc6c7868b4e6c7c04d7328de656190251bc012 (patch) | |
tree | f7678b351d91691df929693445bd2022768e253f /tools/scripts/generate-privdefs.php | |
parent | 941939ee1fbf588395604f0c2805a0f3d4c30231 (diff) | |
download | pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.zip pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.tar.gz |
Random stuff in tools folder tree
White space and text or comment typos only - nothing functional.
Diffstat (limited to 'tools/scripts/generate-privdefs.php')
-rwxr-xr-x | tools/scripts/generate-privdefs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/scripts/generate-privdefs.php b/tools/scripts/generate-privdefs.php index fb1f09b..553be1e 100755 --- a/tools/scripts/generate-privdefs.php +++ b/tools/scripts/generate-privdefs.php @@ -100,7 +100,7 @@ foreach ($found as $fname) echo "--Generating privilege definitions--\n"; $privdef = $prefix."etc/inc/priv.defs.inc"; -$fp = fopen($privdef,"w"); +$fp = fopen($privdef, "w"); if (!$fp) { echo "unable to open {$privdef}\n"; exit -2; @@ -196,7 +196,7 @@ echo "--Checking for pages without privilege definitions--\n"; foreach ($found as $fname) { $match = false; foreach ($pages_current as $pname => $pdesc) { - if (!strcmp($pname,$fname)) { + if (!strcmp($pname, $fname)) { $match = true; break; } @@ -210,7 +210,7 @@ echo "--Checking for stale privilege definitions--\n"; foreach ($pages_current as $pname => $pdesc) { $match = false; foreach ($found as $fname) { - if (!strncmp($fname,$pname,strlen($fname))) { + if (!strncmp($fname, $pname, strlen($fname))) { $match = true; break; } |