-/* $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
#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 */
#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;
}
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
char *p, buf[132];
int c, start, neednl, dflag;
}
static void
-putppt(c)
- int c;
+putppt(int c)
{
int i;
(void) putchar('\n');
}
-int
+static int
getppt(const char *buf)
{
const char *p = strchr(buf, '.');