blob: 45e22e745ea99f530a30921ca061699dea8179cb [file] [log] [blame]
diff --git a/source/DHCPClientUtils/DHCPv4Client/dhcp_client_common.c b/source/DHCPClientUtils/DHCPv4Client/dhcp_client_common.c
index ee2778e..f389bcd 100644
--- a/source/DHCPClientUtils/DHCPv4Client/dhcp_client_common.c
+++ b/source/DHCPClientUtils/DHCPv4Client/dhcp_client_common.c
@@ -220,7 +220,7 @@ static int check_proc_entry_for_pid (char * name, char * args)
if ((dent->d_type == DT_DIR) &&
(SUCCESS == strtol64(dent->d_name, NULL, 10, &pid)))
{
- snprintf(filename, sizeof(filename), "/proc/%lld/stat", pid);
+ snprintf(filename, sizeof(filename), "/proc/%lld/stat", (long long int) pid);
fp = fopen(filename, "r");
if (fp == NULL)
{
@@ -247,8 +247,8 @@ static int check_proc_entry_for_pid (char * name, char * args)
if (args != NULL)
{
// argument to be verified before returning pid
- DBG_PRINT("%s %d: %s running in pid %lld.. checking for cmdline param %s\n", __FUNCTION__, __LINE__, name, pid, args);
- snprintf(filename, sizeof(filename), "/proc/%lld/cmdline", pid);
+ DBG_PRINT("%s %d: %s running in pid %lld.. checking for cmdline param %s\n", __FUNCTION__, __LINE__, name, (long long int) pid, args);
+ snprintf(filename, sizeof(filename), "/proc/%lld/cmdline", (long long int) pid);
fp = fopen(filename, "r");
if (fp == NULL)
{