summaryrefslogtreecommitdiff
path: root/navit/maptool/google/protobuf-c/protobuf-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/maptool/google/protobuf-c/protobuf-c.c')
-rw-r--r--navit/maptool/google/protobuf-c/protobuf-c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/navit/maptool/google/protobuf-c/protobuf-c.c b/navit/maptool/google/protobuf-c/protobuf-c.c
index ab0b31e5a..a7a8516f2 100644
--- a/navit/maptool/google/protobuf-c/protobuf-c.c
+++ b/navit/maptool/google/protobuf-c/protobuf-c.c
@@ -2192,7 +2192,7 @@ protobuf_c_enum_descriptor_get_value_by_name
unsigned start = 0, count = desc->n_value_names;
while (count > 1) {
unsigned mid = start + count / 2;
- int rv = strcmp (desc->values_by_name[mid].name, name);
+ int rv = g_strcmp0(desc->values_by_name[mid].name, name);
if (rv == 0)
return desc->values + desc->values_by_name[mid].index;
else if (rv < 0) {
@@ -2203,7 +2203,7 @@ protobuf_c_enum_descriptor_get_value_by_name
}
if (count == 0)
return NULL;
- if (strcmp (desc->values_by_name[start].name, name) == 0)
+ if (g_strcmp0(desc->values_by_name[start].name, name) == 0)
return desc->values + desc->values_by_name[start].index;
return NULL;
}
@@ -2227,7 +2227,7 @@ protobuf_c_message_descriptor_get_field_by_name
unsigned mid = start + count / 2;
int rv;
field = desc->fields + desc->fields_sorted_by_name[mid];
- rv = strcmp (field->name, name);
+ rv = g_strcmp0(field->name, name);
if (rv == 0)
return field;
else if (rv < 0) {
@@ -2239,7 +2239,7 @@ protobuf_c_message_descriptor_get_field_by_name
if (count == 0)
return NULL;
field = desc->fields + desc->fields_sorted_by_name[start];
- if (strcmp (field->name, name) == 0)
+ if (g_strcmp0(field->name, name) == 0)
return field;
return NULL;
}
@@ -2265,7 +2265,7 @@ protobuf_c_service_descriptor_get_method_by_name
unsigned mid = start + count / 2;
unsigned mid_index = desc->method_indices_by_name[mid];
const char *mid_name = desc->methods[mid_index].name;
- int rv = strcmp (mid_name, name);
+ int rv = g_strcmp0(mid_name, name);
if (rv == 0)
return desc->methods + desc->method_indices_by_name[mid];
if (rv < 0) {
@@ -2277,7 +2277,7 @@ protobuf_c_service_descriptor_get_method_by_name
}
if (count == 0)
return NULL;
- if (strcmp (desc->methods[desc->method_indices_by_name[start]].name, name) == 0)
+ if (g_strcmp0(desc->methods[desc->method_indices_by_name[start]].name, name) == 0)
return desc->methods + desc->method_indices_by_name[start];
return NULL;
}