summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 19:08:36 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 19:08:36 +0000
commit730964efd28b80be48ed35a215a362dde2b6b7a7 (patch)
treeb07c215aa55db3fb81db462f4bc70f61cd56c57f /sbin
parentc4d4a99d31762beef936f34571330923e9300da9 (diff)
downloadFreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.zip
FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.tar.gz
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ldconfig/ldconfig.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 13cd297..6eb49e0 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: ldconfig.c,v 1.13 1996/01/09 00:04:35 pk Exp $
+ * $Id: ldconfig.c,v 1.12 1996/02/26 02:22:33 pst Exp $
*/
#include <sys/param.h>
@@ -39,6 +39,8 @@
#include <sys/resource.h>
#include <dirent.h>
#include <errno.h>
+#include <err.h>
+#include <ctype.h>
#include <fcntl.h>
#include <ar.h>
#include <ranlib.h>
@@ -114,7 +116,7 @@ char *argv[];
return rval;
if (justread) {
listhints();
- return;
+ return 0;
}
}
@@ -288,7 +290,7 @@ buildhints()
hdr.hh_ehints = hdr.hh_strtab + hdr.hh_strtab_sz;
if (verbose)
- printf("Totals: entries %d, buckets %d, string size %d\n",
+ printf("Totals: entries %d, buckets %ld, string size %d\n",
nhints, hdr.hh_nbucket, strtab_sz);
/* Allocate buckets and string table */
OpenPOWER on IntegriCloud