Re: [PATCH] strstrip incorrectly marked __must_check

From: KOSAKI Motohiro
Date: Tue Nov 03 2009 - 14:58:57 EST


2009/11/4 Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>:
>> static inline void strsrip_tail(char *str)
>> {
>>       char *x __used;
>>       x = strstrip(str);
>> }
>
> Bikeshed time but its cleaner to do
>
> static inline __must_check void strstrip(char *str)
> {
>        return strim(str);
> }
>
> and make strim() the old strstrip function without the check requirement

Okey...

[quick hack and compile check]

done :)
sorry for attached file. I'm under poor mail environment now.

Attachment: 0001-lib-Introduce-strim.patch
Description: Binary data