svn commit: r201180 - head/sbin/shutdown

Ed Schouten ed at FreeBSD.org
Tue Dec 29 08:49:44 UTC 2009


Author: ed
Date: Tue Dec 29 08:49:43 2009
New Revision: 201180
URL: http://svn.freebsd.org/changeset/base/201180

Log:
  Add missing `void' for functions without arguments.
  
  While there, rename die_you_gravy_sucking_pig_dog() to something that's
  less moronic.

Modified:
  head/sbin/shutdown/shutdown.c

Modified: head/sbin/shutdown/shutdown.c
==============================================================================
--- head/sbin/shutdown/shutdown.c	Tue Dec 29 08:45:50 2009	(r201179)
+++ head/sbin/shutdown/shutdown.c	Tue Dec 29 08:49:43 2009	(r201180)
@@ -93,7 +93,7 @@ static char mbuf[BUFSIZ];
 static const char *nosync, *whom;
 
 static void badtime(void);
-static void die_you_gravy_sucking_pig_dog(void);
+static void perform_shutdown(void);
 static void finish(int);
 static void getoffset(char *);
 static void loop(void);
@@ -258,7 +258,7 @@ loop(void)
 		if (!tp->timeleft)
 			break;
 	}
-	die_you_gravy_sucking_pig_dog();
+	perform_shutdown();
 }
 
 static jmp_buf alarmbuf;
@@ -325,7 +325,7 @@ timeout(int signo __unused)
 }
 
 static void
-die_you_gravy_sucking_pig_dog()
+perform_shutdown(void)
 {
 	char *empty_environ[] = { NULL };
 
@@ -499,7 +499,7 @@ finish(int signo __unused)
 }
 
 static void
-badtime()
+badtime(void)
 {
 	errx(1, "bad time format");
 }


More information about the svn-src-head mailing list