From 3a6b0bbb51eb12f9cee6948e4a6e316d195fdca3 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Thu, 20 Jun 2019 01:52:51 -0500 Subject: usr.bin/unexpand: make buildable with libbsd --- usr.bin/unexpand/unexpand.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'usr.bin/unexpand') diff --git a/usr.bin/unexpand/unexpand.c b/usr.bin/unexpand/unexpand.c index a9d7279..5edc21c 100644 --- a/usr.bin/unexpand/unexpand.c +++ b/usr.bin/unexpand/unexpand.c @@ -29,30 +29,16 @@ * SUCH DAMAGE. */ -#include -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1980, 1993\ - The Regents of the University of California. All rights reserved."); -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)unexpand.c 8.1 (Berkeley) 6/6/93"; -#endif -__RCSID("$NetBSD: unexpand.c,v 1.15 2016/02/03 05:32:14 christos Exp $"); -#endif /* not lint */ - /* * unexpand - put tabs into a file replacing blanks */ #include #include -#include +#include #include #include #include #include -#include #define DSTOP 8 @@ -103,7 +89,7 @@ main(int argc, char **argv) "Invalid tabstop `%s'", tab); if (nstops >= maxstops) { maxstops += 20; - tabstops = erealloc(tabstops, maxstops); + tabstops = realloc(tabstops, maxstops); } if (nstops && tabstops[nstops - 1] >= (size_t)i) errx(EXIT_FAILURE, -- cgit v1.2.3-70-g09d2