@@ -276,7 +276,7 @@ int main(int argc, char** argv){
if(type_str==NULL)type=channel_info.type;
elseif(STRING_TO_UINT32(type_str)!=channel_info.type)EXIT_ON_CHANNEL_ERROR(&channel_info,"The requested type '%s' differ from the exisiting channel",type_str);
if(keys_nb==-1)keys_nb=channel_info.total_length;
elseif(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);
elseif(keys_nb!=(int)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);
...
...
@@ -301,20 +301,17 @@ int main(int argc, char** argv){
}
}
if(memchr(key_list,quitting_key,keys_nb))EXIT_ON_ERROR("The quitting key '%c' is in your key list %.*s, you need to select an other one with --quitting_key=...",quitting_key,keys_nb,key_list);
if(memchr(key_list,neutral_key,keys_nb))EXIT_ON_ERROR("The neutral key '%c' is in your key list %.*s, you need to select an other one with --neutral_key=...",neutral_key,keys_nb,key_list);