Am 29.08.23 um 14:10 schrieb Fiona Ebner:
> Am 09.08.23 um 16:08 schrieb Filip Schauer:
>> ++                    size_t token_len = comma - token;
>> ++                    if (token_len == devname_len && strncmp(token, 
>> di->devname, token_len) == 0) {
> 
> Passing devname_len to strncmp would avoid the token_len variable.
> 

Would need to be devname_len + 1, but since we want to compare the whole
string, especially once we got the null-terminated split tokens, we can
also just use strcmp().


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to