From e7fc1e71a2d7c923335bfdfb3cc7c223936aee38 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 29 Nov 2010 17:09:53 -0800 Subject: [PATCH] cfm: Fix GCC warning. On 32-bit platforms GCC warns: ../lib/cfm.c: In function 'compose_ccm': ../lib/cfm.c:130: warning: integer constant is too large for 'long' type ../lib/cfm.c: In function 'cfm_should_process_flow': ../lib/cfm.c:375: warning: integer constant is too large for 'long' type This fixes the problem by using the UINT64_C macro from to write a 64-constant. --- lib/cfm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfm.c b/lib/cfm.c index 12cf3e96..428b1a73 100644 --- a/lib/cfm.c +++ b/lib/cfm.c @@ -33,7 +33,7 @@ VLOG_DEFINE_THIS_MODULE(cfm); #define CCM_OPCODE 1 /* CFM message opcode meaning CCM. */ -#define DEST_ADDR 0x0180C2000030 /* Destination for MD level 0 CCMs. */ +#define DEST_ADDR UINT64_C(0x0180C2000030) /* MD level 0 CCM destination. */ struct cfm_internal { struct cfm cfm; -- 2.30.2