[Swfed-svn] swfed-svn [375] - 不要な変数の削除

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 3日 (木) 23:28:54 JST


Revision: 375
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=375
Author:   yoya
Date:     2011-03-03 23:28:54 +0900 (Thu, 03 Mar 2011)

Log Message:
-----------
- 不要な変数の削除
- 文字列(char *) からデータ列(unsigned char*) へのキャスト

Modified Paths:
--------------
    trunk/src/swf_tag_action.c


-------------- next part --------------
Modified: trunk/src/swf_tag_action.c
===================================================================
--- trunk/src/swf_tag_action.c	2011-03-03 14:26:29 UTC (rev 374)
+++ trunk/src/swf_tag_action.c	2011-03-03 14:28:54 UTC (rev 375)
@@ -166,10 +166,10 @@
 
 int
 swf_tag_action_put_setvaribles(swf_tag_t *tag, y_keyvalue_t *kv) {
-    bitstream_t *bs, *bs2;
+    bitstream_t *bs;
     char *key, *value;
     int key_len, value_len;
-    unsigned long data_len, append_data_len;
+    unsigned long data_len;
     swf_tag_action_detail_t *swf_tag_action = (swf_tag_action_detail_t *) tag->detail;
     swf_tag_action->action_sprite = 0;
     bs = bitstream_open();
@@ -180,12 +180,12 @@
         bitstream_putbyte(bs, 0x96); // Push Data
         bitstream_putbytesLE(bs, key_len + 2 , 2);
         bitstream_putbyte(bs, 0);
-        bitstream_putstring(bs, key, key_len);
+        bitstream_putstring(bs, (unsigned char *)key, key_len);
         bitstream_putbyte(bs, 0);
         bitstream_putbyte(bs, 0x96); // Push Data
         bitstream_putbytesLE(bs, value_len + 2 , 2);
         bitstream_putbyte(bs, 0);
-        bitstream_putstring(bs, value, value_len);
+        bitstream_putstring(bs, (unsigned char *)value, value_len);
         bitstream_putbyte(bs, 0);
         bitstream_putbyte(bs, 0x1d); // Set Variable
     }



Swfed-svn メーリングリストの案内
Back to archive index