[libgit2-glib] oid: use the proper parameter name
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] oid: use the proper parameter name
- Date: Tue, 6 Jan 2015 15:34:37 +0000 (UTC)
commit 413c91a9a11963a54974457515c4c87b28836e95
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jan 6 16:34:22 2015 +0100
oid: use the proper parameter name
libgit2-glib/ggit-oid.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-oid.c b/libgit2-glib/ggit-oid.c
index c185eca..4c11667 100644
--- a/libgit2-glib/ggit-oid.c
+++ b/libgit2-glib/ggit-oid.c
@@ -267,7 +267,7 @@ c_to_h (gchar c)
*/
gboolean
ggit_oid_has_prefix (GgitOId *oid,
- const gchar *str)
+ const gchar *prefix)
{
gint i;
@@ -275,23 +275,23 @@ ggit_oid_has_prefix (GgitOId *oid,
{
gint v1;
- if (*str == '\0')
+ if (*prefix == '\0')
{
return TRUE;
}
- v1 = c_to_h (*str++);
+ v1 = c_to_h (*prefix++);
if (v1 == -1)
{
return FALSE;
}
- if (*str != '\0')
+ if (*prefix != '\0')
{
gint v2;
- v2 = c_to_h (*str++);
+ v2 = c_to_h (*prefix++);
if (v2 == -1)
{
@@ -309,7 +309,7 @@ ggit_oid_has_prefix (GgitOId *oid,
}
}
- return *str == '\0';
+ return *prefix == '\0';
}
/* ex:set ts=8 noet: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]