Skip to contentSkip to conversation

assigning enum constant to char * is vile, even if it happens to be 0

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 Char and misc drivers

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 assigning enum constant to char * is vile, even if it happens to be 0

---
 drivers/misc/lkdtm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/lkdtm.c +2 -2
index db9d7df..552b795 100644
@@ -108,8 +108,8 @@ static struct jprobe lkdtm;
 static int lkdtm_parse_commandline(void);
 static void lkdtm_handler(void);
 
-static char* cpoint_name = INVALID;
-static char* cpoint_type = NONE;
+static char* cpoint_name;
+static char* cpoint_type;
 static int cpoint_count = DEFAULT_COUNT;
 static int recur_count = REC_NUM_DEFAULT;
 
Signature · 1 line
1.5.0-rc2.GIT