summaryrefslogtreecommitdiff
path: root/usr/src/ucbcmd
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-15 15:13:09 +0000
committerDan McDonald <danmcd@joyent.com>2019-01-05 15:34:06 -0500
commit1f5207b7604fb44407eb4342aff613f7c4508508 (patch)
tree3a32aff9ba245a7de5fb9c384659480740adcda8 /usr/src/ucbcmd
parentc0455f334914631f42eb41177d677e2820ee6506 (diff)
downloadillumos-joyent-1f5207b7604fb44407eb4342aff613f7c4508508.tar.gz
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/ucbcmd')
-rw-r--r--usr/src/ucbcmd/rusage/Makefile6
-rw-r--r--usr/src/ucbcmd/tset/Makefile8
-rw-r--r--usr/src/ucbcmd/vipw/Makefile8
3 files changed, 17 insertions, 5 deletions
diff --git a/usr/src/ucbcmd/rusage/Makefile b/usr/src/ucbcmd/rusage/Makefile
index 94907e4de0..23b44d6b90 100644
--- a/usr/src/ucbcmd/rusage/Makefile
+++ b/usr/src/ucbcmd/rusage/Makefile
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2019, Joyent, Inc.
PROG= rusage
@@ -31,11 +32,14 @@ INC1 = $(SRC)/ucbhead
FILEMODE= 755
-LDLIBS += -L$(ROOT)/usr/ucblib -R /usr/ucblib -lucb
+LDLIBS += -L$(ROOT)/usr/ucblib -R/usr/ucblib -lucb
CPPFLAGS = -I$(INC1) $(CPPFLAGS.master)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
+# missing prototypes
+SMATCH=off
+
.KEEP_STATE:
all: $(PROG)
diff --git a/usr/src/ucbcmd/tset/Makefile b/usr/src/ucbcmd/tset/Makefile
index 7130f11f5f..36baf6432f 100644
--- a/usr/src/ucbcmd/tset/Makefile
+++ b/usr/src/ucbcmd/tset/Makefile
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2019, Joyent, Inc.
PROG= tset
@@ -29,7 +30,7 @@ include ../Makefile.ucbcmd
FILEMODE= 755
-LDLIBS = -L$(ROOT)/usr/ucblib -R /usr/ucblib $(LDLIBS.cmd) -lucb -ltermcap
+LDLIBS = -L$(ROOT)/usr/ucblib -R/usr/ucblib $(LDLIBS.cmd) -lucb -ltermcap
CPPFLAGS = -I$(SRC)/ucbhead $(CPPFLAGS.master)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
@@ -37,11 +38,14 @@ CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+# missing prototypes
+SMATCH=off
+
ROOTSYMLINK= $(ROOTBIN)/reset
.KEEP_STATE:
-all: $(PROG)
+all: $(PROG)
$(PROG): $(PROG).c
$(LINK.c) -o $@ $(PROG).c $(LDLIBS)
diff --git a/usr/src/ucbcmd/vipw/Makefile b/usr/src/ucbcmd/vipw/Makefile
index 53fb35631e..2df968d9b7 100644
--- a/usr/src/ucbcmd/vipw/Makefile
+++ b/usr/src/ucbcmd/vipw/Makefile
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2019, Joyent, Inc.
PROG= vipw
@@ -29,15 +30,18 @@ include ../Makefile.ucbcmd
INC1 = $(SRC)/ucbhead
-LDLIBS = -L$(ROOT)/usr/ucblib -R /usr/ucblib $(LDLIBS.cmd) -lucb
+LDLIBS = -L$(ROOT)/usr/ucblib -R/usr/ucblib $(LDLIBS.cmd) -lucb
CPPFLAGS = -I$(INC1) $(CPPFLAGS.master)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
+# missing prototypes
+SMATCH=off
+
.KEEP_STATE:
-all: $(PROG)
+all: $(PROG)
$(PROG): $(PROG).c
$(LINK.c) -o $@ $(PROG).c $(LDLIBS)