Skip to content
Snippets Groups Projects
Commit f07d3bc9 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android Git Automerger
Browse files

am f639e96b: Undo idiotic build fix.

* commit 'f639e96b':
  Undo idiotic build fix.
parents b068d357 f639e96b
Branches
Tags
No related merge requests found
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include "neverallow.h" #include "neverallow.h"
int debug; static int debug;
int warn; static int warn;
void neverallow_usage() { void neverallow_usage() {
fprintf(stderr, "\tneverallow [-w|--warn] [-d|--debug] [-n|--neverallows <neverallow-rules>] | [-f|--file <neverallow-file>]\n"); fprintf(stderr, "\tneverallow [-w|--warn] [-d|--debug] [-n|--neverallows <neverallow-rules>] | [-f|--file <neverallow-file>]\n");
......
...@@ -264,10 +264,6 @@ static int analyze_types(policydb_t * policydb, char diff, char equiv) ...@@ -264,10 +264,6 @@ static int analyze_types(policydb_t * policydb, char diff, char equiv)
return 0; return 0;
} }
// defined in neverallow.c
extern int warn;
extern int debug;
int typecmp_func (int argc, char **argv, policydb_t *policydb) { int typecmp_func (int argc, char **argv, policydb_t *policydb) {
char ch, diff = 0, equiv = 0; char ch, diff = 0, equiv = 0;
...@@ -286,10 +282,7 @@ int typecmp_func (int argc, char **argv, policydb_t *policydb) { ...@@ -286,10 +282,7 @@ int typecmp_func (int argc, char **argv, policydb_t *policydb) {
equiv = 1; equiv = 1;
break; break;
case 'w': case 'w':
warn = 1;
break;
case 'z': case 'z':
debug = 1;
break; break;
default: default:
USAGE_ERROR = true; USAGE_ERROR = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment