diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-16 17:53:16 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-16 17:53:16 +0000 |
commit | e46568349c49cadc870f5c0fc84dcce2f7c461b1 (patch) | |
tree | 139332ea64b814967711035cf388438a2c9fa302 /hardinfo2/arch/common/printers.h | |
parent | 3722c94e232b39d2a05ef359a60d25ac0cbe7887 (diff) |
Use g_str_equal instead of strcmp.
About box cleanups
Use g_build_filename instead of building paths on my own
Better BinReloc support (should work even if binreloc initialization fails)
Diffstat (limited to 'hardinfo2/arch/common/printers.h')
-rw-r--r-- | hardinfo2/arch/common/printers.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hardinfo2/arch/common/printers.h b/hardinfo2/arch/common/printers.h index 59d49dfa..3bb98f4c 100644 --- a/hardinfo2/arch/common/printers.h +++ b/hardinfo2/arch/common/printers.h @@ -71,8 +71,7 @@ scan_printers(void) printer_list = g_strdup_printf("[Printers (CUPS)]\n"); for (i = 0; i < noprinters; i++) { printer_list = g_strconcat(printer_list, printers[i], - !strcmp(default_printer, - printers[i]) ? + g_str_equal(default_printer, printers[i]) ? "=<i>(Default)</i>\n" : "=\n", NULL); g_free(printers[i]); |