diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | dmi.c | 2 | ||||
-rw-r--r-- | pci.c | 4 | ||||
-rw-r--r-- | pciusb.c | 20 |
4 files changed, 14 insertions, 14 deletions
@@ -21,7 +21,7 @@ build: $(binaries) $(libraries) lspcidrake: lspcidrake.c libldetect.so $(lib_major).$(LIB_MINOR): $(lib_objs) - $(CC) -shared -Wl,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz + ld -O1 -z relro -shared -soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz -lc $(lib_major): $(lib_major).$(LIB_MINOR) ln -sf $< $@ libldetect.so: $(lib_major) @@ -22,7 +22,7 @@ struct category { const char **fields; }; -static struct category categories[] = { +static const struct category categories[] = { { "BIOS", psizeof(cat_BIOS), cat_BIOS }, { "System", psizeof(cat_System), cat_System }, { "Base Board", psizeof(cat_Base_Board), cat_Base_Board }, @@ -13,9 +13,9 @@ #include "common.h" static char *proc_pci_path_default = "/proc/bus/pci/devices"; -char *proc_pci_path = NULL; +char* proc_pci_path = NULL; -void __attribute__((noreturn)) error_and_die(char *msg, ...) +static void __attribute__((noreturn)) error_and_die(char *msg, ...) { va_list args; @@ -10,16 +10,16 @@ #include <modprobe.h> #include "common.h" -struct utsname rel_buf; -struct module_command *commands = NULL; -struct module_options *modoptions = NULL; -struct module_alias *aliases = NULL; -struct module_blacklist *blacklist = NULL; -const char *config = NULL; - -char *optstring; -char *aliasfilename, *symfilename; -int init; +static struct utsname rel_buf; +static struct module_command *commands = NULL; +static struct module_options *modoptions = NULL; +static struct module_alias *aliases = NULL; +static struct module_blacklist *blacklist = NULL; +static const char *config = NULL; + +static char *optstring; +static char *aliasfilename, *symfilename; +static int init; static void find_modules_through_aliases(struct pciusb_entries *entries) { unsigned int i; |