From 2606eee2d0f280a54208af7f6e2ad9b6d2097eed Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 19 Aug 2006 22:07:17 +0000 Subject: Misc fixes --- hardinfo2/arch/common/printers.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hardinfo2/arch') 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; } -- cgit v1.2.3