[Spice-commits] server/utils.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 12 09:16:42 UTC 2019


 server/utils.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d4251bac5f41b80dae8a2892f51fc3df2a99474b
Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed May 22 10:19:08 2019 +0200

    utils: Remove the LL suffix from NSEC_PER_MILLISEC
    
    This constant fits in a regular 32 bit signed integer so it does not
    need the suffix.
    It is also not used in expressions that may overflow.
    
    Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/utils.h b/server/utils.h
index ea0de152..54bc9d49 100644
--- a/server/utils.h
+++ b/server/utils.h
@@ -53,7 +53,7 @@ static inline int test_bit(int index, uint32_t val)
 typedef int64_t red_time_t;
 
 #define NSEC_PER_SEC      1000000000LL
-#define NSEC_PER_MILLISEC 1000000LL
+#define NSEC_PER_MILLISEC 1000000
 #define NSEC_PER_MICROSEC 1000
 
 /* g_get_monotonic_time() does not have enough precision */


More information about the Spice-commits mailing list