Module Name:    src
Committed By:   christos
Date:           Fri May  5 12:21:28 UTC 2017

Modified Files:
        src/usr.bin/tic: tic.c

Log Message:
fix the tools build. reported by Utkarsh Anand


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/tic/tic.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.bin/tic/tic.c
diff -u src/usr.bin/tic/tic.c:1.29 src/usr.bin/tic/tic.c:1.30
--- src/usr.bin/tic/tic.c:1.29	Thu May  4 10:07:33 2017
+++ src/usr.bin/tic/tic.c	Fri May  5 08:21:28 2017
@@ -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 @@ main(int argc, char **argv)
 		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;
 }

Reply via email to