[BACK]Return to getcap.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/getcap.c between version 1.10 and 1.10.4.1

version 1.10, 1995/08/24 05:26:35 version 1.10.4.1, 1996/09/16 18:40:22
Line 44  static char rcsid[] = "$NetBSD$";
Line 44  static char rcsid[] = "$NetBSD$";
 #endif  #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
   #include "namespace.h"
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <ctype.h>  #include <ctype.h>
Line 248  getent(cap, len, db_array, fd, name, dep
Line 249  getent(cap, len, db_array, fd, name, dep
                  */                   */
   
                 if (fd >= 0) {                  if (fd >= 0) {
                         (void)lseek(fd, (off_t)0, L_SET);                          (void)lseek(fd, (off_t)0, SEEK_SET);
                         myfd = 0;                          myfd = 0;
                 } else {                  } else {
                         (void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p);                          (void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.10.4.1

CVSweb <webmaster@jp.NetBSD.org>