diff options
author | Martti Kuparinen <[email protected]> | 2010-06-23 11:15:30 +0300 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-08-13 11:09:11 +0200 |
commit | 88a04a19d751c4c6712fc9b079e16d3976a4d731 (patch) | |
tree | 7ee6383f7ed95c21f5a1f1873f452681c5b6c212 | |
parent | 69600625564ab3338b2bb2cbbc83da1ae28d6813 (diff) | |
download | otp-88a04a19d751c4c6712fc9b079e16d3976a4d731.tar.gz otp-88a04a19d751c4c6712fc9b079e16d3976a4d731.tar.bz2 otp-88a04a19d751c4c6712fc9b079e16d3976a4d731.zip |
Remove unused variables
-rw-r--r-- | lib/asn1/c_src/asn1_erl_driver.c | 3 | ||||
-rw-r--r-- | lib/runtime_tools/c_src/trace_file_drv.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/asn1/c_src/asn1_erl_driver.c b/lib/asn1/c_src/asn1_erl_driver.c index fd284e5800..9dd3a0fd7d 100644 --- a/lib/asn1/c_src/asn1_erl_driver.c +++ b/lib/asn1/c_src/asn1_erl_driver.c @@ -1407,7 +1407,6 @@ int decode_partial(ErlDrvBinary **drv_binary,unsigned char *in_buf, int in_buf_l int msg_index_val; int *msg_index, *tag_index, tmp_index; int tag_seq_length; - char tag_code; /* one of ASN1_SKIPPED, ASN1_OPTIONAL, ASN1_CHOOSEN */ int wanted_tag, next_tag; int buf_end_index = in_buf_len; int ret = 0, length, old_index; @@ -1600,7 +1599,7 @@ int get_value(char *out_buf, { int len, lenoflen, indef=0, skip_len; int ret=0; - int start_index, out_index = 0; + int start_index; /* printf("get_value 1\n\r"); */ if (in_buf[*msg_index] < 0x80){ /* short definite length */ diff --git a/lib/runtime_tools/c_src/trace_file_drv.c b/lib/runtime_tools/c_src/trace_file_drv.c index 482fcc0288..cd54f36af0 100644 --- a/lib/runtime_tools/c_src/trace_file_drv.c +++ b/lib/runtime_tools/c_src/trace_file_drv.c @@ -520,7 +520,7 @@ static int do_write(FILETYPE fd, unsigned char *buff, int siz) { */ static int my_write(TraceFileData *data, unsigned char *buff, int siz) { - int wrote, w; + int wrote; if (data->buff_siz - data->buff_pos >= siz) { memcpy(data->buff + data->buff_pos, buff, siz); |