Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2015 14:32:49 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r277702 - user/pho/stress2/misc
Message-ID:  <201501251432.t0PEWnOR001902@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Sun Jan 25 14:32:48 2015
New Revision: 277702
URL: https://svnweb.freebsd.org/changeset/base/277702

Log:
  Code cleanup.
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/core.sh

Modified: user/pho/stress2/misc/core.sh
==============================================================================
--- user/pho/stress2/misc/core.sh	Sun Jan 25 14:31:44 2015	(r277701)
+++ user/pho/stress2/misc/core.sh	Sun Jan 25 14:32:48 2015	(r277702)
@@ -52,30 +52,28 @@ done
 rm -f core
 exit
 EOF
-#include <string.h>
+#include <err.h>
 #include <signal.h>
-#include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
-#include <err.h>
+#include <unistd.h>
 
 #define SIZ 10*1024*1024
 
 int
 main(int argc, char **argv)
 {
-	char *cp = 0;
+	char *cp;
 
 	if ((cp = malloc(SIZ)) == NULL)
 		err(1, "Could not malloc 10Mb!");
 
 	memset(cp, 1, SIZ);
 
-//	printf("sleep %d\n", (120 - (time(NULL) % 120))); fflush(stdout);
 	sleep(120 - (time(NULL) % 120));
 	raise(SIGSEGV);
-//	printf(".\n");
 
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501251432.t0PEWnOR001902>