summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk5004.lee <mk5004.lee@samsung.com>2020-01-22 09:04:35 (GMT)
committermk5004.lee <mk5004.lee@samsung.com>2020-01-22 09:04:35 (GMT)
commit630fcb2a7013e77e414a139887d967a95a201b01 (patch)
tree14e8a31b5bccce7654f468a70408c037f88dc08e
parent623e82a0c279247041ab1622a9debcaa8cdc1bb5 (diff)
downloadbadge-tizen.zip
badge-tizen.tar.gz
badge-tizen.tar.bz2
Change return type for get_max_len()HEADtizenrefs/changes/36/223036/1
- long -> unsigned long Change-Id: I110d7ad9119b23e8d7f6529d1718880b091c3d47 Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
-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();