summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/badge_internal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/badge_internal.c b/src/badge_internal.c
index 434d0eb..5c32943 100644
--- a/src/badge_internal.c
+++ b/src/badge_internal.c
@@ -54,9 +54,9 @@ struct _badge_cb_data {
static GHashTable *_badge_cb_hash = NULL;
-static inline long _get_max_len(void)
+static inline unsigned long _get_max_len(void)
{
- long max = 0;
+ unsigned long max = 0;
long path_max_len = 4096;
#ifdef _PC_PATH_MAX
@@ -74,7 +74,7 @@ char *_badge_get_pkgname_by_pid(void)
int pid = 0;
int ret = AUL_R_OK;
int fd = 0;
- long max = 0;
+ unsigned long max = 0;
pid = getpid();
max = _get_max_len();