X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/99518a3664f03a0839b12707e82684f120310023..031f20b96a24f20077990cf4361614028c2d0956:/ppt/ppt.c diff --git a/ppt/ppt.c b/ppt/ppt.c index 194476db..90c4504e 100644 --- a/ppt/ppt.c +++ b/ppt/ppt.c @@ -1,4 +1,4 @@ -/* $NetBSD: ppt.c,v 1.17 2008/07/20 01:03:22 lukem Exp $ */ +/* $NetBSD: ppt.c,v 1.19 2011/08/29 20:30:37 joerg Exp $ */ /* * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\ #if 0 static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: ppt.c,v 1.17 2008/07/20 01:03:22 lukem Exp $"); +__RCSID("$NetBSD: ppt.c,v 1.19 2011/08/29 20:30:37 joerg Exp $"); #endif #endif /* not lint */ @@ -51,12 +51,10 @@ __RCSID("$NetBSD: ppt.c,v 1.17 2008/07/20 01:03:22 lukem Exp $"); #define EDGE "___________" - void usage(void); - int main(int, char *[]); -static void putppt(int); - int getppt(const char *); +static void putppt(int); +static int getppt(const char *); -void +__dead static void usage(void) { extern char *__progname; @@ -65,9 +63,7 @@ usage(void) } int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { char *p, buf[132]; int c, start, neednl, dflag; @@ -131,8 +127,7 @@ main(argc, argv) } static void -putppt(c) - int c; +putppt(int c) { int i; @@ -149,7 +144,7 @@ putppt(c) (void) putchar('\n'); } -int +static int getppt(const char *buf) { const char *p = strchr(buf, '.');