summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-09-04 10:05:57 +0100
committerRichard Hughes <richard@hughsie.com>2008-09-04 10:05:57 +0100
commit4fb995f7849085fdd9b613f94388b9ae9301945c (patch)
tree7488b6253924d71d4bfbe88550085ea962856d12
parent30240b2e976ea100906058dd0891dbe78c065a28 (diff)
trivial egg updates
-rw-r--r--libdevkit-power/egg-obj-list.c2
-rw-r--r--src/egg-string.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/libdevkit-power/egg-obj-list.c b/libdevkit-power/egg-obj-list.c
index 026b183..9c7d07b 100644
--- a/libdevkit-power/egg-obj-list.c
+++ b/libdevkit-power/egg-obj-list.c
@@ -163,7 +163,7 @@ egg_obj_list_print (EggObjList *list)
for (i=0; i<array->len; i++) {
obj = g_ptr_array_index (array, i);
text = func_to_string (obj);
- g_print ("%s\n", text);
+ g_print ("(%i)\t%s\n", i, text);
g_free (text);
}
}
diff --git a/src/egg-string.c b/src/egg-string.c
index ef414a3..8ddb6af 100644
--- a/src/egg-string.c
+++ b/src/egg-string.c
@@ -165,9 +165,8 @@ egg_strlen (const gchar *text, guint len)
guint i;
/* common case */
- if (text == NULL || text[0] == '\0') {
+ if (text == NULL || text[0] == '\0')
return 0;
- }
/* only count up to len */
for (i=1; i<len; i++) {