Ignore:
Timestamp:
Sep 25, 2007, 7:03:31 AM (18 years ago)
Author:
bird
Message:

kmk_builtin_cmp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/cmp_misc.c

    • Property svn:eol-style set to native
    r1115 r1117  
    3030 */
    3131
    32 #include <sys/cdefs.h>
     32/*#include <sys/cdefs.h>*/
    3333#ifndef lint
    34 #if 0
     34/*#if 0
    3535static char sccsid[] = "@(#)misc.c      8.3 (Berkeley) 4/2/94";
    3636#else
    3737__RCSID("$NetBSD: misc.c,v 1.11 2007/08/22 16:59:19 christos Exp $");
    38 #endif
     38#endif*/
    3939#endif /* not lint */
    4040
    4141#include <sys/types.h>
    4242
    43 #include <err.h>
     43#include "err.h"
    4444#include <stdio.h>
    4545#include <stdlib.h>
    4646
    47 #include "extern.h"
     47#include "cmp_extern.h"
    4848
    49 void
     49static int
    5050errmsg(char *file, off_t byte, off_t line)
    5151{
    5252        if (lflag)
    53                 err(ERR_EXIT, "%s: char %lld, line %lld", file,
     53                return err(ERR_EXIT, "%s: char %lld, line %lld", file,
    5454                    (long long)byte, (long long)line);
    5555        else
    56                 err(ERR_EXIT, "%s", file);
     56                return err(ERR_EXIT, "%s", file);
    5757}
    5858
    59 void
     59static int
    6060eofmsg(char *file, off_t byte, off_t line)
    6161{
     
    7272                }
    7373        }
    74         exit(DIFF_EXIT);
     74        return(DIFF_EXIT);
    7575}
    7676
    77 void
     77static int
    7878diffmsg(char *file1, char *file2, off_t byte, off_t line)
    7979{
     
    8181                (void)printf("%s %s differ: char %lld, line %lld\n",
    8282                    file1, file2, (long long)byte, (long long)line);
    83         exit(DIFF_EXIT);
     83        return(DIFF_EXIT);
    8484}
Note: See TracChangeset for help on using the changeset viewer.