]> granicus.if.org Git - check/commitdiff
cast upack_int() to goal container
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:39 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:39 +0000 (04:13 +0000)
Needed to get Check to compile on a c++ compiler

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

src/check_pack.c

index 8ed0a85837845309136449b80f17f9bb39010f8d..fa9b3548c11f79919aa6881b84534dc1c1adb48a 100644 (file)
@@ -220,7 +220,7 @@ static int pack_ctx(char **buf, CtxMsg * cmsg)
 
 static void upack_ctx(char **buf, CtxMsg * cmsg)
 {
-    cmsg->ctx = upack_int(buf);
+    cmsg->ctx = (enum ck_result_ctx)upack_int(buf);
 }
 
 static int pack_duration(char **buf, DurationMsg * cmsg)