summary refs log tree commit diff stats
path: root/plugins/sysinfo/pci.c
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-19 13:36:13 +1000
committerTingPing <tingping@tingping.se>2014-11-02 14:41:20 -0500
commitf83d78dd2801c7e4bee406379d3119f8852cf297 (patch)
tree72322bd80d992ead5359ed70faeeac1ae6a73a20 /plugins/sysinfo/pci.c
parent9fb4eb5107a133a4c0492f11f02cdeb014042786 (diff)
Warning cleanup
- ignoring const
- declarations after statements
- some C files didnt include own headers (risking them getting out of sync)

Closes #1064
Diffstat (limited to 'plugins/sysinfo/pci.c')
-rw-r--r--plugins/sysinfo/pci.c3
1 files changed, 2 insertions, 1 deletions
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);