Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/tic Remove __VALGRIND__ guard .... just clean up.



details:   https://anonhg.NetBSD.org/src/rev/36e07810fb33
branches:  trunk
changeset: 823716:36e07810fb33
user:      roy <roy%NetBSD.org@localhost>
date:      Thu May 04 14:07:33 2017 +0000

description:
Remove __VALGRIND__ guard .... just clean up.

diffstat:

 usr.bin/tic/tic.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 7af30dbaf3b4 -r 36e07810fb33 usr.bin/tic/tic.c
--- a/usr.bin/tic/tic.c Thu May 04 13:53:36 2017 +0000
+++ b/usr.bin/tic/tic.c Thu May 04 14:07:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tic.c,v 1.28 2017/05/04 13:53:36 roy Exp $ */
+/* $NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tic.c,v 1.28 2017/05/04 13:53:36 roy Exp $");
+__RCSID("$NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $");
 
 #include <sys/types.h>
 #include <sys/queue.h>
@@ -483,6 +483,7 @@
        size_t buflen;
        ssize_t len;
        TBUF tbuf;
+       struct term *term;
 
        cflag = sflag = 0;
        ofile = NULL;
@@ -578,7 +579,6 @@
                fprintf(stderr, "%zu entries and %zu aliases written to %s\n",
                    nterm, nalias, dbname);
 
-#ifdef __VALGRIND__
        if (ofile == NULL)
                free(dbname);
        while ((term = STAILQ_FIRST(&terms)) != NULL) {
@@ -588,7 +588,6 @@
                free(term);
        }
        hdestroy1(free, NULL);
-#endif
 
        return EXIT_SUCCESS;
 }



Home | Main Index | Thread Index | Old Index