diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-07-14 14:01:47 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-07-14 13:21:30 -0700 |
commit | 4dbb641bb2d4037f107b58b31e80963dc8b72c0e (patch) | |
tree | a9666f9a0a2dc41c4d21636dbf1cf0699b9bde60 /include | |
parent | 25eca7ce35973577c8d85704c270f7fb53e6732e (diff) | |
download | xserver-4dbb641bb2d4037f107b58b31e80963dc8b72c0e.tar.gz |
config_odev_add_attribute*: Check for right attribute type
Don't allow setting string attributes to integers and vice versa.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hotplug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hotplug.h b/include/hotplug.h index b2c0d78a5..4c2fa970c 100644 --- a/include/hotplug.h +++ b/include/hotplug.h @@ -32,7 +32,7 @@ extern _X_EXPORT void config_pre_init(void); extern _X_EXPORT void config_init(void); extern _X_EXPORT void config_fini(void); -enum { ODEV_ATTRIB_STRING, ODEV_ATTRIB_INT }; +enum { ODEV_ATTRIB_UNKNOWN = -1, ODEV_ATTRIB_STRING = 0, ODEV_ATTRIB_INT }; struct OdevAttribute { struct xorg_list member; |