Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tic fix the tools build. reported by Utkarsh Anand



details:   https://anonhg.NetBSD.org/src/rev/bdfd90d0f246
branches:  trunk
changeset: 353423:bdfd90d0f246
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 05 12:21:28 2017 +0000

description:
fix the tools build. reported by Utkarsh Anand

diffstat:

 usr.bin/tic/tic.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r bcba4cd15fa3 -r bdfd90d0f246 usr.bin/tic/tic.c
--- a/usr.bin/tic/tic.c Fri May 05 05:46:49 2017 +0000
+++ b/usr.bin/tic/tic.c Fri May 05 12:21:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $ */
+/* $NetBSD: tic.c,v 1.30 2017/05/05 12:21:28 christos Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tic.c,v 1.29 2017/05/04 14:07:33 roy Exp $");
+__RCSID("$NetBSD: tic.c,v 1.30 2017/05/05 12:21:28 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/queue.h>
@@ -587,7 +587,13 @@
                free(term->name);
                free(term);
        }
+#ifndef HAVE_NBTOOL_CONFIG_H
+       /*
+        * hdestroy1 is not standard but we don't really care if we
+        * leak in the tools version
+        */
        hdestroy1(free, NULL);
+#endif
 
        return EXIT_SUCCESS;
 }



Home | Main Index | Thread Index | Old Index