diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-06-20 16:26:28 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-06-20 16:26:28 -0400 |
commit | 99e16110bc42856492636b4b492a0cffe6d70a88 (patch) | |
tree | 5e834a58c6cdf77114da6cbae2de35c8fffb0e71 /plugins/sysinfo/unix | |
parent | 2d184c09674b417bf294001d017b0d1ad2337de3 (diff) |
sysinfo: Simplify finding pci.ids file on Unix
There is probably no reason to make this user configurable just get the correct one at build time...
Diffstat (limited to 'plugins/sysinfo/unix')
-rw-r--r-- | plugins/sysinfo/unix/pci.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/sysinfo/unix/pci.c b/plugins/sysinfo/unix/pci.c index 71b085fe..a887245c 100644 --- a/plugins/sysinfo/unix/pci.c +++ b/plugins/sysinfo/unix/pci.c @@ -122,11 +122,8 @@ void pci_find_fullname(char *fullname, char *vendor, char *device) char *position; int cardfound = 0; FILE *fp; - - if (!sysinfo_get_str_pref ("pciids", buffer)) - strcpy (buffer, DEFAULT_PCIIDS); - fp = fopen (buffer, "r"); + fp = fopen (PCIIDS_FILE, "r"); if(fp == NULL) { g_snprintf(fullname, bsize, "%s:%s", vendor, device); |