find: support -HLP
[oweals/busybox.git] / libpwdgrp / pwd_grp_internal.c
index ffdc85e4ee6108ad709db5c37cd7ec9a246f481a..d6483be84410d43309df92b8b487a2e861cf0c36 100644 (file)
@@ -1,21 +1,20 @@
 /* vi: set sw=4 ts=4: */
-/*  Copyright (C) 2003     Manuel Novoa III
+/* Copyright (C) 2003     Manuel Novoa III
  *
- *  Licensed under GPL v2, or later.  See file LICENSE in this tarball.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
-/*  Nov 6, 2003  Initial version.
+/* Nov 6, 2003  Initial version.
  *
- *  NOTE: This implementation is quite strict about requiring all
+ * NOTE: This implementation is quite strict about requiring all
  *    field seperators.  It also does not allow leading whitespace
  *    except when processing the numeric fields.  glibc is more
  *    lenient.  See the various glibc difference comments below.
  *
- *  TODO:
+ * TODO:
  *    Move to dynamic allocation of (currently statically allocated)
  *      buffers; especially for the group-related functions since
  *      large group member lists will cause error returns.
- *
  */
 
 #ifndef GETXXKEY_R_FUNC
@@ -38,12 +37,12 @@ int GETXXKEY_R_FUNC(GETXXKEY_R_KEYTYPE key,
        while (1) {
                rv = bb__pgsreader(GETXXKEY_R_PARSER, resultbuf, buffer, buflen, stream);
                if (!rv) {
-                       if (GETXXKEY_R_TEST(resultbuf)) { /* Found key? */
+                       if (GETXXKEY_R_TEST(resultbuf)) { /* found key? */
                                *result = resultbuf;
                                break;
                        }
                } else {
-                       if (rv == ENOENT) {     /* end-of-file encountered. */
+                       if (rv == ENOENT) {  /* EOF encountered */
                                rv = 0;
                        }
                        break;