Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2019 15:00:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348168 - head/usr.bin/posixshmcontrol
Message-ID:  <201905231500.x4NF0FNI052947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu May 23 15:00:15 2019
New Revision: 348168
URL: https://svnweb.freebsd.org/changeset/base/348168

Log:
  Use int for the getopt() result.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/usr.bin/posixshmcontrol/posixshmcontrol.c

Modified: head/usr.bin/posixshmcontrol/posixshmcontrol.c
==============================================================================
--- head/usr.bin/posixshmcontrol/posixshmcontrol.c	Thu May 23 14:33:01 2019	(r348167)
+++ head/usr.bin/posixshmcontrol/posixshmcontrol.c	Thu May 23 15:00:15 2019	(r348168)
@@ -160,10 +160,10 @@ shm_decode_mode(mode_t m, char *str)
 static int
 list_shm(int argc, char **argv)
 {
-	char *buf, *bp, sizebuf[8], str[10], c;
+	char *buf, *bp, sizebuf[8], str[10];
 	const struct kinfo_file *kif;
 	struct stat st;
-	int error, fd, mib[3], ret;
+	int c, error, fd, mib[3], ret;
 	size_t len, miblen;
 	bool hsize, uname;
 



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