small cleanups

- Revert 'cannot' --> 'can not' (it's the exception!)
- Remove duplicate function
- Squelch compiler warnings

Closes: #248
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon authored and Colin Walters (automation) committed 2016-04-08 18:43:18 +00:00
1 parent ddda8e5b8b
commit 41661e47e1
5 files changed
+8 -54

No files matched your search

+2 -2
View File
@@ -319,7 +319,7 @@ ot_variant_bsearch_str (GVariant *array,
int *out_pos)
{
gsize imax, imin;
gsize imid;
gsize imid = -1;
gsize n;
n = g_variant_n_children (array);
@@ -337,7 +337,7 @@ ot_variant_bsearch_str (GVariant *array,
imid = (imin + imax) / 2;
child = g_variant_get_child_value (array, imid);
g_variant_get_child (child, 0, "&s", &cur, NULL);
g_variant_get_child (child, 0, "&s", &cur, NULL);
cmp = strcmp (cur, str);
if (cmp < 0)