Skip to content

Instantly share code, notes, and snippets.

@adsr
Created February 24, 2017 21:39
Show Gist options
  • Select an option

  • Save adsr/3a5848a402e8a6e4adb53b18e12892fe to your computer and use it in GitHub Desktop.

Select an option

Save adsr/3a5848a402e8a6e4adb53b18e12892fe to your computer and use it in GitHub Desktop.
diff --git a/oauth.c b/oauth.c
index 62522bd..198e2cb 100644
--- a/oauth.c
+++ b/oauth.c
@@ -367,22 +367,22 @@ static int oauth_strcmp(zval *first, zval *second)
} else if (result > 0) {
return 1;
}
return 0;
}
static int oauth_compare_value(const void *a, const void *b)
{
Bucket *f, *s;
- f = *(Bucket **)a;
- s = *(Bucket **)b;
+ f = (Bucket *)a;
+ s = (Bucket *)b;
return oauth_strcmp(&f->val, &s->val);
}
static int oauth_compare_key(const void *a, const void *b)
{
zval first, second;
int result;
Bucket *f, *s;
f = (Bucket *) a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment