DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: style(9) patches to mrouted(8), edquota(8)


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Tue, 16 Mar 2004 09:35:33 -0800

On Mon, 15 Mar 2004 12:08:04 -0800 (PST)
Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx> wrote:

> 
> :>     One note:  A lot of people, including me, prefer char **argv
> :>     instead of char *argv[].  Don't worry about it, I'll fix it up.
> :[... 09:45:58 -0800 (PST) ...]
> :>     Also another general note (to everyone):  do not put blank lines
> :>     in procedures with no declarations.  e.g.:
> :
> :Urk.  I was just going "by the book."  These should be in style(9), yes?
> 
>     Go ahead and submit a patch for style(9) :-)

OK, attached.

-Chris

Index: share/man/man9/style.9
===================================================================
RCS file: /home/dcvs/src/share/man/man9/style.9,v
retrieving revision 1.8
diff -u -r1.8 style.9
--- share/man/man9/style.9	11 Mar 2004 12:28:57 -0000	1.8
+++ share/man/man9/style.9	16 Mar 2004 09:24:16 -0000
@@ -309,7 +309,7 @@
  * what the program does.
  */
 int
-main(int argc, char *argv[])
+main(int argc, char **argv)
 {
 	long num;
 	int ch;
@@ -606,11 +606,6 @@
 	va_end(ap);
 	/* No return needed for void functions. */
 }
-
-static void
-usage(void)
-{
-	/* Insert an empty line if the function has no local variables. */
 .Ed
 .Pp
 Use


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]