[gnome-battery-bench] System info: make C89 compilers happy
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-battery-bench] System info: make C89 compilers happy
- Date: Wed, 5 Jul 2017 14:47:41 +0000 (UTC)
commit 00bf4cc832241e81f685eb2a831d555bf5f3f141
Author: Christian Kellner <gicmo gnome org>
Date: Wed Jul 5 16:39:58 2017 +0200
System info: make C89 compilers happy
src/system-info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/system-info.c b/src/system-info.c
index a1cdc38..9ee9713 100644
--- a/src/system-info.c
+++ b/src/system-info.c
@@ -291,7 +291,7 @@ static GPtrArray *
gbb_pci_device_discover(GUdevClient *client, int code, int sub, int progif)
{
GPtrArray *devices = NULL;
- GList *udevices;
+ GList *udevices, *l;
if (client == NULL) {
client = g_udev_client_new(NULL);
@@ -303,7 +303,7 @@ gbb_pci_device_discover(GUdevClient *client, int code, int sub, int progif)
devices = g_ptr_array_new_with_free_func(g_object_unref);
- for (GList *l = udevices; l; l = l->next) {
+ for (l = udevices; l; l = l->next) {
GUdevDevice *udev_device = l->data;
GbbPciDevice *dev;
GbbPciClass cid;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]