summaryrefslogtreecommitdiff
path: root/libbb/my_getug.c
diff options
context:
space:
mode:
authorEric Andersen2004-10-08 08:07:40 +0000
committerEric Andersen2004-10-08 08:07:40 +0000
commit94d628c76ab8e1a7837f4fda5a21be531f8efdea (patch)
tree1af1656023891efd0feadf27acb54d24154b73eb /libbb/my_getug.c
parent07f2fea62c38c3926d4dedd47b542bbb8059fcd4 (diff)
downloadbusybox-94d628c76ab8e1a7837f4fda5a21be531f8efdea.zip
busybox-94d628c76ab8e1a7837f4fda5a21be531f8efdea.tar.gz
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
Diffstat (limited to 'libbb/my_getug.c')
-rw-r--r--libbb/my_getug.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libbb/my_getug.c b/libbb/my_getug.c
index 894dc5f..9b7292d 100644
--- a/libbb/my_getug.c
+++ b/libbb/my_getug.c
@@ -21,17 +21,17 @@
/*
*
- * if bufsize is > 0 char *idname can not be set to NULL.
- * On success idname is written on static allocated buffer
+ * if bufsize is > 0 char *buffer can not be set to NULL.
+ * If idname is not NULL it is written on the static allocated buffer
* (and a pointer to it is returned).
- * On failure uid or gid as string is written to static allocated buffer
+ * if idname is NULL, id as string is written to the static allocated buffer
* and NULL is returned.
- * if bufsize is = 0 char *idname can be set to NULL.
- * On success idname is returned.
- * On failure NULL is returned.
- * if bufsize is < 0 char *idname can be set to NULL.
- * On success idname is returned.
- * On failure an error message is printed and the program exits.
+ * if bufsize is = 0 char *buffer can be set to NULL.
+ * If idname exists a pointer to it is returned,
+ * else NULL is returned.
+ * if bufsize is < 0 char *buffer can be set to NULL.
+ * If idname exists a pointer to it is returned,
+ * else an error message is printed and the program exits.
*/
#include <stdio.h>