[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 04/13] tools/xenstore: let hashtable_insert() return 0 on success
On 03.05.23 15:03, Julien Grall wrote: Hi, On 30/03/2023 09:50, Juergen Gross wrote:Today hashtable_insert() returns 0 in case of an error. Change that to let it return an errno value in the error case and 0 in case of success.I usually find such change risky because it makes the backport more complex if we introduce a new call to hashtable_insert() and it is also quite difficult to review (the compiler would not help to confirm all the callers have changed).So can you provide a compelling reason for doing the change? (consistency would not be one IMO) The motivation was consistency. :-) The alternative would be to really set errno in the error case, which would add additional lines. I'm not really feeling strong here, BTW. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |