Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2015 18:08:08 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286085 - head/usr.bin/ipcrm
Message-ID:  <201507301808.t6UI8841057403@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Thu Jul 30 18:08:08 2015
New Revision: 286085
URL: https://svnweb.freebsd.org/changeset/base/286085

Log:
  Make some variables and functions static.

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

Modified: head/usr.bin/ipcrm/ipcrm.c
==============================================================================
--- head/usr.bin/ipcrm/ipcrm.c	Thu Jul 30 18:00:37 2015	(r286084)
+++ head/usr.bin/ipcrm/ipcrm.c	Thu Jul 30 18:08:08 2015	(r286085)
@@ -50,18 +50,11 @@ __FBSDID("$FreeBSD$");
 
 #include "ipc.h"
 
-int	signaled;
-int	errflg;
-int	rmverbose = 0;
-
-void	usage(void);
-
-int	msgrm(key_t, int);
-int	shmrm(key_t, int);
-int	semrm(key_t, int);
-void	not_configured(int);
+static int	signaled;
+static int	errflg;
+static int	rmverbose = 0;
 
-void
+static void
 usage(void)
 {
 
@@ -72,7 +65,7 @@ usage(void)
 	exit(1);
 }
 
-int
+static int
 msgrm(key_t key, int id)
 {
 
@@ -113,7 +106,7 @@ msgrm(key_t key, int id)
 	return msgctl(id, IPC_RMID, NULL);
 }
 
-int
+static int
 shmrm(key_t key, int id)
 {
 
@@ -154,7 +147,7 @@ shmrm(key_t key, int id)
 	return shmctl(id, IPC_RMID, NULL);
 }
 
-int
+static int
 semrm(key_t key, int id)
 {
 	union semun arg;
@@ -196,7 +189,7 @@ semrm(key_t key, int id)
 	return semctl(id, 0, IPC_RMID, arg);
 }
 
-void
+static void
 not_configured(int signo __unused)
 {
 



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