From f83d78dd2801c7e4bee406379d3119f8852cf297 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 19 Jul 2014 13:36:13 +1000 Subject: Warning cleanup - ignoring const - declarations after statements - some C files didnt include own headers (risking them getting out of sync) Closes #1064 --- plugins/sysinfo/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/sysinfo/pci.c') diff --git a/plugins/sysinfo/pci.c b/plugins/sysinfo/pci.c index bc8fb11f..9946c446 100644 --- a/plugins/sysinfo/pci.c +++ b/plugins/sysinfo/pci.c @@ -115,9 +115,10 @@ void pci_find_fullname(char *fullname, char *vendor, char *device) char devicename[bsize/2] = ""; char *position; int cardfound = 0; + FILE *fp; sysinfo_get_pciids (buffer); - FILE *fp = fopen (buffer, "r"); + fp = fopen (buffer, "r"); if(fp == NULL) { snprintf(fullname, bsize, "%s:%s", vendor, device); -- cgit 1.4.1