Module Name: src Committed By: abhinav Date: Wed May 10 12:09:52 UTC 2017
Modified Files: src/usr.sbin/makemandb: makemandb.c Log Message: Get rid of unnecessary variable. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/usr.sbin/makemandb/makemandb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/makemandb/makemandb.c diff -u src/usr.sbin/makemandb/makemandb.c:1.54 src/usr.sbin/makemandb/makemandb.c:1.55 --- src/usr.sbin/makemandb/makemandb.c:1.54 Tue May 2 13:54:08 2017 +++ src/usr.sbin/makemandb/makemandb.c Wed May 10 12:09:52 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: makemandb.c,v 1.54 2017/05/02 13:54:08 abhinav Exp $ */ +/* $NetBSD: makemandb.c,v 1.55 2017/05/10 12:09:52 abhinav Exp $ */ /* * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadh...@gmail.com> * Copyright (c) 2011 Kristaps Dzonsons <krist...@bsd.lv> @@ -17,7 +17,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: makemandb.c,v 1.54 2017/05/02 13:54:08 abhinav Exp $"); +__RCSID("$NetBSD: makemandb.c,v 1.55 2017/05/10 12:09:52 abhinav Exp $"); #include <sys/stat.h> #include <sys/types.h> @@ -944,8 +944,7 @@ set_section(const struct roff_man *rm, m { if (!rm) return; - const struct roff_meta *rm_meta = &rm->meta; - const char *s = rm_meta->msec == NULL ? "?" : rm_meta->msec; + const char *s = rm->meta.msec == NULL ? "?" : rm->meta.msec; easprintf(&rec->section, "%s", s); if (rec->section[0] == '?' && mflags.verbosity == 2) warnx("%s: Missing section number", rec->file_path); @@ -960,9 +959,8 @@ set_machine(const struct roff_man *rm, m { if (rm == NULL) return; - const struct roff_meta *rm_meta = &rm->meta; - if (rm_meta->arch) - rec->machine = estrdup(rm_meta->arch); + if (rm->meta.arch) + rec->machine = estrdup(rm->meta.arch); } /*