aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-10-08 08:07:40 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-10-08 08:07:40 +0000
commit3d3bacd7d94c035e3acc6f79478291d58a2636ff (patch)
tree1af1656023891efd0feadf27acb54d24154b73eb /libbb
parent12f604927c88fe328018c49cca0b09239d15387d (diff)
downloadbusybox-w32-3d3bacd7d94c035e3acc6f79478291d58a2636ff.tar.gz
busybox-w32-3d3bacd7d94c035e3acc6f79478291d58a2636ff.tar.bz2
busybox-w32-3d3bacd7d94c035e3acc6f79478291d58a2636ff.zip
Tito writes:
Hi to all, This patch contains just some fixes for some misleading comments in my_getpwuid.c and my_getug.c. The code is untouched so this patch will not cause troubles. Please apply. Thanks in advance and Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@9323 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/my_getpwuid.c10
-rw-r--r--libbb/my_getug.c18
2 files changed, 14 insertions, 14 deletions
diff --git a/libbb/my_getpwuid.c b/libbb/my_getpwuid.c
index 3195a2182..7da360ac8 100644
--- a/libbb/my_getpwuid.c
+++ b/libbb/my_getpwuid.c
@@ -22,15 +22,15 @@
22 /* Hacked by Tito Ragusa (c) 2004 <farmatito@tiscali.it> to make it more 22 /* Hacked by Tito Ragusa (c) 2004 <farmatito@tiscali.it> to make it more
23 * flexible : 23 * flexible :
24 * 24 *
25 * if bufsize is > 0 char *user can not be set to NULL. 25 * if bufsize is > 0 char *name can not be set to NULL.
26 * On success username is written on static allocated buffer name 26 * On success username is written on the static allocated buffer name
27 * (and a pointer to it is returned). 27 * (and a pointer to it is returned).
28 * On failure uid as string is written to static allocated buffer name 28 * On failure uid as string is written to the static allocated buffer name
29 * and NULL is returned. 29 * and NULL is returned.
30 * if bufsize is = 0 char *user can be set to NULL. 30 * if bufsize is = 0 char *name can be set to NULL.
31 * On success username is returned. 31 * On success username is returned.
32 * On failure NULL is returned. 32 * On failure NULL is returned.
33 * if bufsize is < 0 char *user can be set to NULL 33 * if bufsize is < 0 char *name can be set to NULL
34 * On success username is returned. 34 * On success username is returned.
35 * On failure an error message is printed and the program exits. 35 * On failure an error message is printed and the program exits.
36 */ 36 */
diff --git a/libbb/my_getug.c b/libbb/my_getug.c
index 894dc5fdd..9b7292d13 100644
--- a/libbb/my_getug.c
+++ b/libbb/my_getug.c
@@ -21,17 +21,17 @@
21 21
22 /* 22 /*
23 * 23 *
24 * if bufsize is > 0 char *idname can not be set to NULL. 24 * if bufsize is > 0 char *buffer can not be set to NULL.
25 * On success idname is written on static allocated buffer 25 * If idname is not NULL it is written on the static allocated buffer
26 * (and a pointer to it is returned). 26 * (and a pointer to it is returned).
27 * On failure uid or gid as string is written to static allocated buffer 27 * if idname is NULL, id as string is written to the static allocated buffer
28 * and NULL is returned. 28 * and NULL is returned.
29 * if bufsize is = 0 char *idname can be set to NULL. 29 * if bufsize is = 0 char *buffer can be set to NULL.
30 * On success idname is returned. 30 * If idname exists a pointer to it is returned,
31 * On failure NULL is returned. 31 * else NULL is returned.
32 * if bufsize is < 0 char *idname can be set to NULL. 32 * if bufsize is < 0 char *buffer can be set to NULL.
33 * On success idname is returned. 33 * If idname exists a pointer to it is returned,
34 * On failure an error message is printed and the program exits. 34 * else an error message is printed and the program exits.
35 */ 35 */
36 36
37#include <stdio.h> 37#include <stdio.h>