summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/mode.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-12 00:13:37 +0000
committermarkm <markm@FreeBSD.org>2001-12-12 00:13:37 +0000
commitfa1f2b928010b69e6b1c78b220d8285e3145eeeb (patch)
treea352417aa710eb05cee72263260d54de2d5b2a8e /usr.bin/systat/mode.c
parenta5ca913bde3c80eb417acabe27efbd1e9046d38b (diff)
downloadFreeBSD-src-fa1f2b928010b69e6b1c78b220d8285e3145eeeb.zip
FreeBSD-src-fa1f2b928010b69e6b1c78b220d8285e3145eeeb.tar.gz
WARNS=2 fixes with NO_WERROR set, as there are some header issues
with namelists. use __FBSDID().
Diffstat (limited to 'usr.bin/systat/mode.c')
-rw-r--r--usr.bin/systat/mode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/systat/mode.c b/usr.bin/systat/mode.c
index 3eb85c0..5f64e3e 100644
--- a/usr.bin/systat/mode.c
+++ b/usr.bin/systat/mode.c
@@ -25,8 +25,6 @@
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
/*
@@ -58,6 +56,10 @@
* mode in the command line.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#include <sys/types.h>
#include "systat.h"
@@ -69,7 +71,7 @@ enum mode currentmode = display_RATE;
static const char *const modes[] = { "rate", "delta", "since", "absolute" };
int
-cmdmode(char *cmd, char *args)
+cmdmode(const char *cmd, const char *args)
{
if (prefix(cmd, "mode")) {
if (args[0] == '\0') {
OpenPOWER on IntegriCloud