summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/logadm/Makefile3
-rw-r--r--usr/src/cmd/logadm/conf.c2
-rw-r--r--usr/src/cmd/logadm/main.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/cmd/logadm/Makefile b/usr/src/cmd/logadm/Makefile
index 82cd4e5398..7b959c0dba 100644
--- a/usr/src/cmd/logadm/Makefile
+++ b/usr/src/cmd/logadm/Makefile
@@ -36,6 +36,7 @@ include ../Makefile.cmd
CPPFLAGS += -D_FILE_OFFSET_BITS=64
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-clobbered
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused-label
XGETFLAGS += -a -x logadm.xcl
@@ -91,6 +92,8 @@ $(POFILE): $(POFILES)
clean:
$(RM) $(OBJS) $(TESTOBJS)
+lint: lint_SRCS
+
include ../Makefile.targ
#
diff --git a/usr/src/cmd/logadm/conf.c b/usr/src/cmd/logadm/conf.c
index ec4ab05a56..38be82ec64 100644
--- a/usr/src/cmd/logadm/conf.c
+++ b/usr/src/cmd/logadm/conf.c
@@ -195,7 +195,7 @@ conf_scan(const char *fname, char *buf, int buflen, int timescan)
for (line = buf; line < ebuf; line = eline) {
char *ap;
struct opts *opts = NULL;
- struct confinfo *cp = NULL;
+ struct confinfo *cp;
lineno++;
err_fileline(fname, lineno);
diff --git a/usr/src/cmd/logadm/main.c b/usr/src/cmd/logadm/main.c
index 3c959841f5..a2884b9321 100644
--- a/usr/src/cmd/logadm/main.c
+++ b/usr/src/cmd/logadm/main.c
@@ -162,7 +162,7 @@ static struct lut *Gzipnames = NULL;
int
main(int argc, char *argv[])
{
- struct opts *clopts = NULL; /* from parsing command line */
+ struct opts *clopts; /* from parsing command line */
const char *conffile; /* our configuration file */
const char *timestamps; /* our timestamps file */
struct fn_list *lognames; /* list of lognames we're processing */
@@ -1130,7 +1130,7 @@ docopytruncate(struct opts *opts, const char *file, const char *file_copy)
struct stat s;
struct utimbuf times;
off_t written = 0, rem, last = 0, thresh = 1024 * 1024;
- ssize_t len = 0;
+ ssize_t len;
/* print info if necessary */
if (opts_count(opts, "vn") != 0) {