[BACK]Return to getinfo.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cap_mkdb

Diff for /src/usr.bin/cap_mkdb/Attic/getinfo.c between version 1.6 and 1.7

version 1.6, 2003/06/04 16:24:45 version 1.7, 2003/06/10 22:20:45
Line 74 
Line 74 
  * return NULL.   * return NULL.
  */   */
 static char *  static char *
 igetcap(buf, cap, type)  igetcap(char *buf, char *cap, int type)
         char *buf, *cap;  
         int type;  
 {  {
         char *bp, *cp;          char *bp, *cp;
   
Line 135 
Line 133 
  *        MAX_RECURSION.   *        MAX_RECURSION.
  */   */
 static int  static int
 getent(cap, len, db_array, fd, name, depth)  getent(char **cap, u_int *len, char **db_array, int fd, char *name, int depth)
         char **cap, **db_array, *name;  
         u_int *len;  
         int fd, depth;  
 {  {
         char *r_end, *rp, **db_p;          char *r_end, *rp, **db_p;
         int myfd, eof, foundit;          int myfd, eof, foundit;
Line 464 
Line 459 
  * record buf, -1 if not.   * record buf, -1 if not.
  */   */
 static int  static int
 igetmatch(buf, name)  igetmatch(char *buf, char *name)
         char *buf, *name;  
 {  {
         char *np, *bp;          char *np, *bp;
   
Line 507 
Line 501 
 static char **dbp;  static char **dbp;
   
 static int  static int
 igetclose()  igetclose(void)
 {  {
         if (pfp != NULL) {          if (pfp != NULL) {
                 (void)fclose(pfp);                  (void)fclose(pfp);
Line 524 
Line 518 
  * upon returning an entry with more remaining, and -1 if an error occurs.   * upon returning an entry with more remaining, and -1 if an error occurs.
  */   */
 int  int
 igetnext(bp, db_array)  igetnext(char **bp, char **db_array)
         char **bp;  
         char **db_array;  
 {  {
         size_t len;          size_t len;
         int status, done;          int status, done;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7