diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-10-08 08:07:40 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-10-08 08:07:40 +0000 |
commit | 94d628c76ab8e1a7837f4fda5a21be531f8efdea (patch) | |
tree | 1af1656023891efd0feadf27acb54d24154b73eb | |
parent | 07f2fea62c38c3926d4dedd47b542bbb8059fcd4 (diff) | |
download | busybox-w32-94d628c76ab8e1a7837f4fda5a21be531f8efdea.tar.gz busybox-w32-94d628c76ab8e1a7837f4fda5a21be531f8efdea.tar.bz2 busybox-w32-94d628c76ab8e1a7837f4fda5a21be531f8efdea.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
-rw-r--r-- | libbb/my_getpwuid.c | 10 | ||||
-rw-r--r-- | libbb/my_getug.c | 18 |
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> |