diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-08-19 22:07:17 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-08-19 22:07:17 +0000 |
commit | 2606eee2d0f280a54208af7f6e2ad9b6d2097eed (patch) | |
tree | 73f345d9ad053108ade64457fe7b78cde01be7cd /hardinfo2/arch/common | |
parent | 4addacc312d3ee05bb17d59d9658349b5b9b70ab (diff) |
Misc fixes
Diffstat (limited to 'hardinfo2/arch/common')
-rw-r--r-- | hardinfo2/arch/common/printers.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/hardinfo2/arch/common/printers.h b/hardinfo2/arch/common/printers.h index af4793ac..59d49dfa 100644 --- a/hardinfo2/arch/common/printers.h +++ b/hardinfo2/arch/common/printers.h @@ -22,6 +22,7 @@ scan_printers(void) static GModule *cups = NULL; static int (*cupsGetPrinters) (char ***printers) = NULL; static char *(*cupsGetDefault) (void) = NULL; + static char *libcups[] = { "libcups", "libcups.so", "libcups.so.1", @@ -47,11 +48,9 @@ scan_printers(void) } if (!g_module_symbol(cups, "cupsGetPrinters", (gpointer) & cupsGetPrinters) - || !g_module_symbol(cups, "cupsGetDefault", - (gpointer) & cupsGetDefault)) { - printer_list = - g_strdup("[Printers]\n" - "No suitable CUPS library found="); + || !g_module_symbol(cups, "cupsGetDefault", (gpointer) & cupsGetDefault)) { + printer_list = g_strdup("[Printers]\n" + "No suitable CUPS library found="); g_module_close(cups); return; } |