summaryrefslogtreecommitdiffstats
path: root/bin/dd/misc.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:24:13 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:24:13 +0000
commit5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf (patch)
treebb89216bd31fd20d2f8d292f03ed0842028b958d /bin/dd/misc.c
parent41e5cc1a95a5bfa252a69404fcb3cd5e9eaec898 (diff)
downloadFreeBSD-src-5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf.zip
FreeBSD-src-5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
Diffstat (limited to 'bin/dd/misc.c')
-rw-r--r--bin/dd/misc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 654462e..d59d52e 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -56,7 +56,7 @@ static const char rcsid[] =
#include "extern.h"
void
-summary()
+summary(void)
{
struct timeval tv;
double secs;
@@ -89,8 +89,7 @@ summary()
/* ARGSUSED */
void
-summaryx(notused)
- int notused __unused;
+summaryx(int notused __unused)
{
int save_errno = errno;
@@ -100,8 +99,7 @@ summaryx(notused)
/* ARGSUSED */
void
-terminate(sig)
- int sig;
+terminate(int sig)
{
summary();
OpenPOWER on IntegriCloud