Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid useless casting in aurpkg_cmp

  • Loading branch information...
commit da11f39d7aea66c39840979a9467f9661b9c432b 1 parent 9e322f8
@falconindy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cower.c
View
6 cower.c
@@ -511,10 +511,10 @@ int archive_extract_file(const struct response_t *file) /* {{{ */
int aurpkg_cmp(const void *p1, const void *p2) /* {{{ */
{
- struct aurpkg_t *pkg1 = (struct aurpkg_t*)p1;
- struct aurpkg_t *pkg2 = (struct aurpkg_t*)p2;
+ const struct aurpkg_t *pkg1 = p1;
+ const struct aurpkg_t *pkg2 = p2;
- return strcmp((const char*)pkg1->name, (const char*)pkg2->name);
+ return strcmp(pkg1->name, pkg2->name);
} /* }}} */
struct aurpkg_t *aurpkg_dup(const struct aurpkg_t *pkg) /* {{{ */
Please sign in to comment.
Something went wrong with that request. Please try again.