[BACK]Return to getgrent.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/getgrent.c between version 1.16 and 1.17

version 1.16, 1997/05/20 15:46:03 version 1.17, 1997/05/21 01:51:39
Line 189  grscan(search, gid, name)
Line 189  grscan(search, gid, name)
                         case YPMODE_FULL:                          case YPMODE_FULL:
                                 data = NULL;                                  data = NULL;
                                 if (__ypcurrent) {                                  if (__ypcurrent) {
                                           key = NULL;
                                         r = yp_next(__ypdomain, "group.byname",                                          r = yp_next(__ypdomain, "group.byname",
                                                 __ypcurrent, __ypcurrentlen,                                                  __ypcurrent, __ypcurrentlen,
                                                 &key, &keylen, &data, &datalen);                                                  &key, &keylen, &data, &datalen);
                                         free(__ypcurrent);                                          free(__ypcurrent);
                                         if (r != 0)                                          if (r != 0) {
                                                 __ypcurrent = NULL;                                                  __ypcurrent = NULL;
                                                   if (key)
                                                           free(key);
                                           }
                                         else {                                          else {
                                                 __ypcurrent = key;                                                  __ypcurrent = key;
                                                 __ypcurrentlen = keylen;                                                  __ypcurrentlen = keylen;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>