From: riastradh Date: Wed, 27 Jun 2012 22:07:36 +0000 (+0000) Subject: Clean up #includes in progress(1). X-Git-Url: https://git.cameronkatri.com/bsd-progress.git/commitdiff_plain/d80f4bd9104c017f4691f9c6438734f68262d3e2 Clean up #includes in progress(1). Sort them, omit needless ones, and add omitted needful ones. Omissions revealed by pilfering the code and trying to build it on Mac OS X. We ought to have a better way to reveal these omissions... --- diff --git a/progress.c b/progress.c index 5e4f8ee..e649989 100644 --- a/progress.c +++ b/progress.c @@ -1,4 +1,4 @@ -/* $NetBSD: progress.c,v 1.19 2011/09/16 15:39:28 joerg Exp $ */ +/* $NetBSD: progress.c,v 1.20 2012/06/27 22:07:36 riastradh Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -31,32 +31,23 @@ #include #ifndef lint -__RCSID("$NetBSD: progress.c,v 1.19 2011/09/16 15:39:28 joerg Exp $"); +__RCSID("$NetBSD: progress.c,v 1.20 2012/06/27 22:07:36 riastradh Exp $"); #endif /* not lint */ #include -#include -#include #include -#include +#include #include -#include -#include #include #include #include -#include -#include #include #include -#include +#include #include #include #include -#include -#include -#include #include #define GLOBAL /* force GLOBAL decls in progressbar.h to be diff --git a/progressbar.c b/progressbar.c index d7edd27..2350776 100644 --- a/progressbar.c +++ b/progressbar.c @@ -1,4 +1,4 @@ -/* $NetBSD: progressbar.c,v 1.21 2009/04/12 10:18:52 lukem Exp $ */ +/* $NetBSD: progressbar.c,v 1.22 2012/06/27 22:07:36 riastradh Exp $ */ /*- * Copyright (c) 1997-2009 The NetBSD Foundation, Inc. @@ -31,14 +31,15 @@ #include #ifndef lint -__RCSID("$NetBSD: progressbar.c,v 1.21 2009/04/12 10:18:52 lukem Exp $"); +__RCSID("$NetBSD: progressbar.c,v 1.22 2012/06/27 22:07:36 riastradh Exp $"); #endif /* not lint */ /* * FTP User Program -- Misc support routines */ -#include #include +#include +#include #include #include