]> granicus.if.org Git - check/commitdiff
Add DurationMsg to CheckMsg union
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:11 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:11 +0000 (04:13 +0000)
As the CheckMsg union is passed around to the various
pack/upack functions, and a DurationMsg is valid to be
passed around, include it in the union just in case
the DurationMsg is or becomes larger than the other
members.

Patch provided by Michael Piszczek

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1153 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_pack.h

index 372ef73223255965bc3ffbdd95fd3ecb48efea3a..c38547f3ee1e25f7859922de5fca719de576d4c5 100644 (file)
@@ -57,6 +57,7 @@ typedef union
     CtxMsg ctx_msg;
     FailMsg fail_msg;
     LocMsg loc_msg;
+    DurationMsg duration_msg;
 } CheckMsg;
 
 typedef struct RcvMsg