[PATCH] users: new applet

gotrunks at gmail.com gotrunks at gmail.com
Wed Jul 27 11:19:00 UTC 2011


On Wed, Jul 27, 2011 at 11:29 AM, Matthias Andree <mandree at freebsd.org> wrote:
> Am 27.07.2011 10:29, schrieb Tito:
>> On Wednesday 27 July 2011 00:33:37 gotrunks at gmail.com wrote:
>>> Hi,
>>>
>>> patch attached.
>>>
>>> Regards,
>>>
>>
>> Hi,
>> printf(ut->ut_user);  maybe adding a format string here would be a good thing.
>> BTW.: this code looks very similar to what the who applet does, couldn't
>> they be merged?
>
> 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.

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


More information about the busybox mailing list