summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-06-05 23:27:11 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-06-05 23:27:11 +0200
commita25d547dd4a67783b939da6f2d592af01336aa6d (patch)
tree8ec9ab96f17a8bd3ec3ffcaa7ff9cce70c5825dc /udev/udev-rules.c
parent213f0355c057bf55afcba45b51ffa0490060bc45 (diff)
udevd: use enum instead of char in struct declaration
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index e6452a6fa4..4e760a5176 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2008-2009 Kay Sievers <kay.sievers@vrfy.org>
* Copyright (C) 2008 Alan Jenkins <alan-jenkins@tuffmail.co.uk>
*
* This program is free software: you can redistribute it and/or modify
@@ -166,7 +166,7 @@ struct token {
union {
unsigned char type; /* same as in rule and key */
struct {
- unsigned char type;
+ enum token_type type:8;
unsigned char flags;
unsigned short token_count;
unsigned int label_off;
@@ -174,10 +174,10 @@ struct token {
unsigned short filename_line;
} rule;
struct {
- unsigned char type;
+ enum token_type type:8;
+ enum operation_type op:8;
+ enum string_glob_type glob:8;
unsigned char flags;
- unsigned char op;
- unsigned char glob;
unsigned int value_off;
union {
unsigned int attr_off;