From 5b76eed8435d83619f278cc1584ca5751e2804f6 Mon Sep 17 00:00:00 2001 From: perry Date: Sat, 15 Dec 2007 19:44:37 +0000 Subject: convert __attribute__s to applicable cdefs.h macros --- atc/graphics.c | 6 +++--- atc/input.c | 32 ++++++++++++++++---------------- atc/log.c | 6 +++--- atc/update.c | 6 +++--- 4 files changed, 25 insertions(+), 25 deletions(-) (limited to 'atc') diff --git a/atc/graphics.c b/atc/graphics.c index 3e082ad2..9d9ba6fb 100644 --- a/atc/graphics.c +++ b/atc/graphics.c @@ -1,4 +1,4 @@ -/* $NetBSD: graphics.c,v 1.13 2006/06/07 09:22:52 jnemeth Exp $ */ +/* $NetBSD: graphics.c,v 1.14 2007/12/15 19:44:38 perry Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: graphics.c,v 1.13 2006/06/07 09:22:52 jnemeth Exp $"); +__RCSID("$NetBSD: graphics.c,v 1.14 2007/12/15 19:44:38 perry Exp $"); #endif #endif /* not lint */ @@ -282,7 +282,7 @@ ioerror(int pos, int len, const char *str) /* ARGSUSED */ void -quit(int dummy __attribute__((__unused__))) +quit(int dummy __unused) { int c, y, x; #ifdef BSD diff --git a/atc/input.c b/atc/input.c index 44310133..215c3c30 100644 --- a/atc/input.c +++ b/atc/input.c @@ -1,4 +1,4 @@ -/* $NetBSD: input.c,v 1.21 2006/10/07 18:29:02 elad Exp $ */ +/* $NetBSD: input.c,v 1.22 2007/12/15 19:44:38 perry Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: input.c,v 1.21 2006/10/07 18:29:02 elad Exp $"); +__RCSID("$NetBSD: input.c,v 1.22 2007/12/15 19:44:38 perry Exp $"); #endif #endif /* not lint */ @@ -371,7 +371,7 @@ setplane(int c) /* ARGSUSED */ const char * -turn(int c __attribute__((__unused__))) +turn(int c __unused) { if (p.altitude == 0) return ("Planes at airports may not change direction"); @@ -380,7 +380,7 @@ turn(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -circle(int c __attribute__((__unused__))) +circle(int c __unused) { if (p.altitude == 0) return ("Planes cannot circle on the ground"); @@ -390,7 +390,7 @@ circle(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -left(int c __attribute__((__unused__))) +left(int c __unused) { dir = D_LEFT; p.new_dir = p.dir - 1; @@ -401,7 +401,7 @@ left(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -right(int c __attribute__((__unused__))) +right(int c __unused) { dir = D_RIGHT; p.new_dir = p.dir + 1; @@ -412,7 +412,7 @@ right(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -Left(int c __attribute__((__unused__))) +Left(int c __unused) { p.new_dir = p.dir - 2; if (p.new_dir < 0) @@ -422,7 +422,7 @@ Left(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -Right(int c __attribute__((__unused__))) +Right(int c __unused) { p.new_dir = p.dir + 2; if (p.new_dir >= MAXDIR) @@ -476,7 +476,7 @@ delayb(int c) /* ARGSUSED */ const char * -beacon(int c __attribute__((__unused__))) +beacon(int c __unused) { dest_type = T_BEACON; return (NULL); @@ -484,7 +484,7 @@ beacon(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -ex_it(int c __attribute__((__unused__))) +ex_it(int c __unused) { dest_type = T_EXIT; return (NULL); @@ -492,7 +492,7 @@ ex_it(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -airport(int c __attribute__((__unused__))) +airport(int c __unused) { dest_type = T_AIRPORT; return (NULL); @@ -500,7 +500,7 @@ airport(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -climb(int c __attribute__((__unused__))) +climb(int c __unused) { dir = D_UP; return (NULL); @@ -508,7 +508,7 @@ climb(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -descend(int c __attribute__((__unused__))) +descend(int c __unused) { dir = D_DOWN; return (NULL); @@ -620,7 +620,7 @@ rel_dir(int c) /* ARGSUSED */ const char * -mark(int c __attribute__((__unused__))) +mark(int c __unused) { if (p.altitude == 0) return ("Cannot mark planes on the ground"); @@ -632,7 +632,7 @@ mark(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -unmark(int c __attribute__((__unused__))) +unmark(int c __unused) { if (p.altitude == 0) return ("Cannot unmark planes on the ground"); @@ -644,7 +644,7 @@ unmark(int c __attribute__((__unused__))) /* ARGSUSED */ const char * -ignore(int c __attribute__((__unused__))) +ignore(int c __unused) { if (p.altitude == 0) return ("Cannot ignore planes on the ground"); diff --git a/atc/log.c b/atc/log.c index ce437a5c..b333ce5f 100644 --- a/atc/log.c +++ b/atc/log.c @@ -1,4 +1,4 @@ -/* $NetBSD: log.c,v 1.18 2006/06/07 09:30:35 jnemeth Exp $ */ +/* $NetBSD: log.c,v 1.19 2007/12/15 19:44:38 perry Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: log.c,v 1.18 2006/06/07 09:30:35 jnemeth Exp $"); +__RCSID("$NetBSD: log.c,v 1.19 2007/12/15 19:44:38 perry Exp $"); #endif #endif /* not lint */ @@ -293,7 +293,7 @@ log_score(int list_em) /* ARGSUSED */ void -log_score_quit(int dummy __attribute__((__unused__))) +log_score_quit(int dummy __unused) { (void)log_score(0); exit(0); diff --git a/atc/update.c b/atc/update.c index 84405127..90969937 100644 --- a/atc/update.c +++ b/atc/update.c @@ -1,4 +1,4 @@ -/* $NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $ */ +/* $NetBSD: update.c,v 1.19 2007/12/15 19:44:38 perry Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ #if 0 static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $"); +__RCSID("$NetBSD: update.c,v 1.19 2007/12/15 19:44:38 perry Exp $"); #endif #endif /* not lint */ @@ -54,7 +54,7 @@ __RCSID("$NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $"); /* ARGSUSED */ void -update(int dummy __attribute__((__unused__))) +update(int dummy __unused) { int i, dir_diff, unclean; PLANE *pp, *p1, *p2; -- cgit v1.2.3-56-ge451