[PATCH] users: new applet

gotrunks at gmail.com gotrunks at gmail.com
Wed Jul 27 12:39:11 UTC 2011


On Wed, Jul 27, 2011 at 1:53 PM, Ralf Friedl <Ralf.Friedl at online.de> wrote:
> gotrunks at gmail.com wrote:
>>
>> On Wed, Jul 27, 2011 at 11:29 AM, Matthias Andree <mandree at freebsd.org>
>> wrote:
>>
>>>
>>> Re printf, adding a format string ("%s") is absolutely necessary.
>>> Else use fputs(ut->ut_user, stdout)
>>
>> It was about saving bytes but ok, revised patch attached.
>>
>
> You can probably get those bytes back by using
>  if (ut->ut_type == USER_PROCESS) {
>   printf(" %s" + first, ut->ut_user);
>   first = 0;
>  }
>
> Ralf
>

wow, thanks.

Regards,
-- 
Pere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-users-new-applet.patch
Type: text/x-patch
Size: 1565 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110727/2f5c85e7/attachment.bin>


More information about the busybox mailing list