Commit aea49a661dc62b9e1e08d34f1b3827113bd5c4e3

Authored by Arnaud Blanchard
1 parent 19e96d2c

Fix type of data from existing channel

Showing 1 changed file with 5 additions and 4 deletions
... ... @@ -278,6 +278,10 @@ int main(int argc, char** argv){
if (keys_nb==-1) keys_nb=channel_info.total_length;
else if (keys_nb!=channel_info.total_length) EXIT_ON_CHANNEL_ERROR(&channel_info, "number of keys(%d) differ from channel length (%d)", keys_nb, channel.total_length);
}
else {
if (type_str) type=STRING_TO_UINT32(type_str);
else type='UIN8'; //default type
}
if (key_list==NULL) {
if (keys_nb==-1){
... ... @@ -297,10 +301,7 @@ int main(int argc, char** argv){
}
}
if (type_str) type=STRING_TO_UINT32(type_str);
else type='UIN8'; //default type
... ...