Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2017 21:16:07 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324507 - head/sbin/growfs
Message-ID:  <201710102116.v9ALG77m090013@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Oct 10 21:16:07 2017
New Revision: 324507
URL: https://svnweb.freebsd.org/changeset/base/324507

Log:
  growfs: ANSIfy cgckhash()
  
  The build was broken on GCC-using architectures with:
  
  growfs.c: In function 'cgckhash':
  growfs.c:1753: warning: old-style function definition
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sbin/growfs/growfs.c

Modified: head/sbin/growfs/growfs.c
==============================================================================
--- head/sbin/growfs/growfs.c	Tue Oct 10 21:05:40 2017	(r324506)
+++ head/sbin/growfs/growfs.c	Tue Oct 10 21:16:07 2017	(r324507)
@@ -1748,8 +1748,7 @@ mount_reload(const struct statfs *stfs)
  * Calculate the check-hash of the cylinder group.
  */
 static void
-cgckhash(cgp)
-	struct cg *cgp;
+cgckhash(struct cg *cgp)
 {
 
 	if ((sblock.fs_metackhash & CK_CYLGRP) == 0)



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