This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=6a45c7ab2e12e296f8c822c99f43d84f81da2c1a

commit 6a45c7ab2e12e296f8c822c99f43d84f81da2c1a
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jun 5 05:34:27 2018 +0200

    s-s-d: Mark a literal integer long to avoid value truncation
    
    The variable holding the result is long, but the literal was an int,
    so if there was truncation it would have happened regardless of the
    holding variable type. Make sure no truncation happens.
    
    Warned-by: cppcheck
---
 utils/start-stop-daemon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index faea3d176..6d04c674e 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -191,7 +191,7 @@ enum {
 };
 
 /* The minimum polling interval, 20ms. */
-static const long MIN_POLL_INTERVAL = 20 * NANOSEC_IN_MILLISEC;
+static const long MIN_POLL_INTERVAL = 20L * NANOSEC_IN_MILLISEC;
 
 static enum action_code action;
 static bool testmode = false;

-- 
Dpkg.Org's dpkg

Reply via email to