Changeset 1117 for trunk/src/kmk/kmkbuiltin/cmp_misc.c
- Timestamp:
- Sep 25, 2007, 7:03:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/cmp_misc.c
-
Property svn:eol-style
set to
native
r1115 r1117 30 30 */ 31 31 32 #include <sys/cdefs.h> 32 /*#include <sys/cdefs.h>*/ 33 33 #ifndef lint 34 #if 034 /*#if 0 35 35 static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; 36 36 #else 37 37 __RCSID("$NetBSD: misc.c,v 1.11 2007/08/22 16:59:19 christos Exp $"); 38 #endif 38 #endif*/ 39 39 #endif /* not lint */ 40 40 41 41 #include <sys/types.h> 42 42 43 #include <err.h>43 #include "err.h" 44 44 #include <stdio.h> 45 45 #include <stdlib.h> 46 46 47 #include " extern.h"47 #include "cmp_extern.h" 48 48 49 void 49 static int 50 50 errmsg(char *file, off_t byte, off_t line) 51 51 { 52 52 if (lflag) 53 err(ERR_EXIT, "%s: char %lld, line %lld", file,53 return err(ERR_EXIT, "%s: char %lld, line %lld", file, 54 54 (long long)byte, (long long)line); 55 55 else 56 err(ERR_EXIT, "%s", file);56 return err(ERR_EXIT, "%s", file); 57 57 } 58 58 59 void 59 static int 60 60 eofmsg(char *file, off_t byte, off_t line) 61 61 { … … 72 72 } 73 73 } 74 exit(DIFF_EXIT);74 return(DIFF_EXIT); 75 75 } 76 76 77 void 77 static int 78 78 diffmsg(char *file1, char *file2, off_t byte, off_t line) 79 79 { … … 81 81 (void)printf("%s %s differ: char %lld, line %lld\n", 82 82 file1, file2, (long long)byte, (long long)line); 83 exit(DIFF_EXIT);83 return(DIFF_EXIT); 84 84 } -
Property svn:eol-style
set to
Note:
See TracChangeset
for help on using the changeset viewer.