summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-package-alpm.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-07-25 12:29:53 +0100
committerRichard Hughes <richard@hughsie.com>2016-07-25 12:29:53 +0100
commit74594acf6d9745b8ea0d4efbd58a4fc331f6ef46 (patch)
treefa31b9f18eea4396a1e247f20630334e42c9f046 /libappstream-builder/asb-package-alpm.c
parente04788886491aeb6ace2ba1d1161f0ce86c04a21 (diff)
downloadappstream-glib-74594acf6d9745b8ea0d4efbd58a4fc331f6ef46.tar.gz
Add two new GCC warnings and fix up signed/unsigned issues
Diffstat (limited to 'libappstream-builder/asb-package-alpm.c')
-rw-r--r--libappstream-builder/asb-package-alpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libappstream-builder/asb-package-alpm.c b/libappstream-builder/asb-package-alpm.c
index f083b0a..f58994e 100644
--- a/libappstream-builder/asb-package-alpm.c
+++ b/libappstream-builder/asb-package-alpm.c
@@ -112,7 +112,7 @@ asb_package_alpm_ensure_version (AsbPackage *pkg, GError **error)
/* epoch:version:release */
if (g_strv_length (split) == 3) {
- asb_package_set_epoch (pkg, g_ascii_strtoll (split[0], NULL, 0));
+ asb_package_set_epoch (pkg, (guint) g_ascii_strtoull (split[0], NULL, 0));
asb_package_set_version (pkg, split[1]);
asb_package_set_release (pkg, split[2]);
} else {/* version:release */
@@ -182,7 +182,7 @@ asb_package_alpm_open (AsbPackage *pkg, const gchar *filename, GError **error)
g_set_error (error,
ASB_PLUGIN_ERROR,
ASB_PLUGIN_ERROR_FAILED,
- "libalpm initialization failed %s (%d) for %s",
+ "libalpm initialization failed %s (%u) for %s",
alpm_strerror (alpm_error),
alpm_error,
filename);
@@ -194,7 +194,7 @@ asb_package_alpm_open (AsbPackage *pkg, const gchar *filename, GError **error)
g_set_error (error,
ASB_PLUGIN_ERROR,
ASB_PLUGIN_ERROR_FAILED,
- "Failed to load package %s : %s (%d)",
+ "Failed to load package %s : %s (%u)",
filename,
alpm_strerror (alpm_errno (priv->handle)),
alpm_errno (priv->handle));