diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:22:59 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:22:59 -0300 |
commit | f70f209239d51a5893f8f9f080b19b6ee94ff4af (patch) | |
tree | e0ba432caaf0b19987dd0c8f162d3d949da809f6 /modules/devices | |
parent | 48726c0c219ffeddb45befe0fb8621e1b2648e78 (diff) |
New upstream version 2.0.9preupstream/2.0.9pre
Diffstat (limited to 'modules/devices')
-rw-r--r-- | modules/devices/printers.c | 2 | ||||
-rw-r--r-- | modules/devices/spd-decode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/printers.c b/modules/devices/printers.c index d880e691..0ed9dcda 100644 --- a/modules/devices/printers.c +++ b/modules/devices/printers.c @@ -43,7 +43,7 @@ struct _CUPSDest { static int (*cups_dests_get) (CUPSDest **dests) = NULL; static int (*cups_dests_free) (int num_dests, CUPSDest *dests) = NULL; static void (*cups_set_server)(const char *server) = NULL; -volatile static gboolean cups_init = FALSE; +static volatile gboolean cups_init = FALSE; GModule *cups; diff --git a/modules/devices/spd-decode.c b/modules/devices/spd-decode.c index 511504b2..cf4c89d7 100644 --- a/modules/devices/spd-decode.c +++ b/modules/devices/spd-decode.c @@ -1160,7 +1160,7 @@ static GSList *decode_dimms2(GSList *eeprom_list, const gchar *driver, gboolean } if (s) { - strncpy(s->dev, g_basename(spd_path), 31); + strncpy(s->dev, g_path_get_basename(spd_path), 31); s->spd_driver = driver; s->spd_size = spd_size; s->type = ram_type; |