Skip to content

Commit 274c178

Browse files
committed
remove declarations which dup from system headers
('-ansi' compiler flag might have caused some declarations to be hidden)
1 parent 58e83b6 commit 274c178

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

UnixBench/src/big.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
#define MAXCHILD 12
4646
#define MAXWORK 10
4747

48-
/* Can't seem to get this declared in the headers... */
49-
extern int kill(pid_t pid, int sig);
50-
5148
void wrapup(const char *);
5249
void onalarm(int);
5350
void pipeerr();

UnixBench/src/dhry_1.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,13 @@ Enumeration Func_1 ();
7474
/* variables for time measurement: */
7575

7676
#ifdef TIMES
77-
struct tms time_info;
78-
extern int times ();
79-
/* see library function "times" */
77+
#include <time.h>
78+
#include <sys/times.h>
8079
#define Too_Small_Time 120
8180
/* Measurements should last at least about 2 seconds */
8281
#endif
8382
#ifdef TIME
84-
extern long time();
85-
/* see library function "time" */
83+
#include <time.h>
8684
#define Too_Small_Time 2
8785
/* Measurements should last at least 2 seconds */
8886
#endif

UnixBench/src/fstime.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ char SCCSid[] = "@(#) @(#)fstime.c:3.5 -- 5/15/91 19:30:19";
5151
#define FNAME0 "dummy0"
5252
#define FNAME1 "dummy1"
5353

54-
extern void sync(void);
55-
5654
int w_test(int timeSecs);
5755
int r_test(int timeSecs);
5856
int c_test(int timeSecs);
@@ -318,7 +316,6 @@ int r_test(int timeSecs)
318316
unsigned long tmp;
319317
double start, end;
320318
extern int sigalarm;
321-
extern int errno;
322319

323320
/* Sync and let it settle */
324321
sync();

UnixBench/src/time-polling.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,6 @@ char *argv[];
376376
struct poll2ofd poll2ofd_array[MAX_FDS];
377377
long poll2_times[MAX_ITERATIONS];
378378
#endif
379-
#if 0
380-
extern char *sys_errlist[];
381-
#endif
382379

383380
#ifdef HAS_SELECT
384381
FD_ZERO (&input_fds);

0 commit comments

Comments
 (0)