]> granicus.if.org Git - check/commitdiff
Removed compiler warnings mentioned in bug #547126.
authorneo23 <neo23@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 May 2002 08:34:57 +0000 (08:34 +0000)
committerneo23 <neo23@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 May 2002 08:34:57 +0000 (08:34 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@138 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/src/check_pack.c
check/tests/check_check_log.c

index eafc4fc5cb7c05a967e7895f03edccdfd9bb7d23..bbd2ef1dec3f308410dcc273dfd5a2cc1e92e4ea 100644 (file)
@@ -113,7 +113,7 @@ int upack (char *buf, CheckMsg *msg, enum ck_msg_type *type)
 
 static void pack_int (char **buf, int val)
 {
-  unsigned char *ubuf = *buf;
+  unsigned char *ubuf = (unsigned char *) *buf;
   ck_uint32 uval = val;
 
   ubuf[0] = (uval >> 24) & 0xFF;
@@ -126,7 +126,7 @@ static void pack_int (char **buf, int val)
 
 static int upack_int (char **buf)
 {
-  unsigned char *ubuf = *buf;
+  unsigned char *ubuf = (unsigned char *) *buf;
   ck_uint32 uval;
 
   uval = ((ubuf[0] << 24) | (ubuf[1] << 16) | (ubuf[2] << 8) | ubuf[3]);
index 4e01473b9099671f2920351aa0a4094d6e7666bb..afc47c2c8b5304bb64af386441ea17cc68233c8d 100644 (file)
@@ -38,7 +38,7 @@ START_TEST(test_double_set_log)
   fail_unless(strcmp(srunner_log_fname(sr), "test_log") == 0,
              "Log file is initialize only and shouldn't be changeable once set");
 }
-END_TEST;  
+END_TEST
 
 Suite *make_log_suite(void)
 {