Re: [PATCHv2 27/56] string-list: Add API to remove an item from an unsorted list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 12, 2011 at 09:00, Johannes Sixt <j.sixt@xxxxxxxxxxxxx> wrote:
> BTW, the code does this:
>
>> +     list->items[i] = list->items[list->nr-1];
>
> i.e., it assigns an entire struct. Is this perhaps problematic with older
> C compilers? (I don't know, I'm more used to C++, where this is well-defined.)

Unlikely. As long as I can remember it always was a memcpy-like operation.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]