diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-03-25 13:41:06 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-03-29 12:42:37 +1000 |
commit | 24221d0f46d5e175dec3a78445a51d130a3d19f9 (patch) | |
tree | aeaa571c666a1cf72867e9b7e811108095b4fbfb | |
parent | 031ff565c8d7059f895ba6e6ff3048214dc5024a (diff) | |
download | libwacom-24221d0f46d5e175dec3a78445a51d130a3d19f9.tar.gz |
Mark our static lookup tables with static const
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | libwacom/libwacom-database.c | 6 | ||||
-rw-r--r-- | libwacom/libwacom.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c index 569b0d5..af3cdf6 100644 --- a/libwacom/libwacom-database.c +++ b/libwacom/libwacom-database.c @@ -375,7 +375,7 @@ libwacom_setup_paired_attributes(WacomDeviceDatabase *db) } } -struct { +static const struct { const char *key; WacomButtonFlags flag; } options[] = { @@ -390,7 +390,7 @@ struct { { "OLEDs", WACOM_BUTTON_OLED } }; -struct { +static const struct { const char *key; WacomStatusLEDs value; } supported_leds[] = { @@ -400,7 +400,7 @@ struct { { "Touchstrip2", WACOM_STATUS_LED_TOUCHSTRIP2 } }; -struct { +static const struct { const char *key; WacomIntegrationFlags value; } integration_flags[] = { diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c index 9f6aa0d..f3be49d 100644 --- a/libwacom/libwacom.c +++ b/libwacom/libwacom.c @@ -1115,7 +1115,7 @@ libwacom_get_status_leds(const WacomDevice *device, int *num_leds) return device->status_leds; } -struct { +static const struct { WacomButtonFlags button_flags; WacomStatusLEDs status_leds; } button_status_leds[] = { |