Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/usr.sbin/dbsym * Pull in config.h if building as a host ...
details: https://anonhg.NetBSD.org/src/rev/f0e6051ffb5f
branches: trunk
changeset: 536331:f0e6051ffb5f
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Sep 13 15:28:44 2002 +0000
description:
* Pull in config.h if building as a host tool.
* bfd_vma is not a pointer type, so use 0 instead of NULL.
diffstat:
gnu/usr.sbin/dbsym/dbsym.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 9c3d74a3377a -r f0e6051ffb5f gnu/usr.sbin/dbsym/dbsym.c
--- a/gnu/usr.sbin/dbsym/dbsym.c Fri Sep 13 15:27:30 2002 +0000
+++ b/gnu/usr.sbin/dbsym/dbsym.c Fri Sep 13 15:28:44 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbsym.c,v 1.4 2002/04/08 14:20:41 bjh21 Exp $ */
+/* $NetBSD: dbsym.c,v 1.5 2002/09/13 15:28:44 thorpej Exp $ */
/*
* Copyright (c) 2001 Simon Burge (for Wasabi Systems)
@@ -38,9 +38,13 @@
#endif /* not lint */
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: dbsym.c,v 1.4 2002/04/08 14:20:41 bjh21 Exp $");
+__RCSID("$NetBSD: dbsym.c,v 1.5 2002/09/13 15:28:44 thorpej Exp $");
#endif /* not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/param.h>
#include <sys/mman.h>
#include <sys/stat.h>
@@ -63,9 +67,9 @@
size_t offset;
} db_symtab_symbols[] = {
#define X_DB_SYMTAB 0
- { "_db_symtab", NULL, 0 },
+ { "_db_symtab", 0, 0 },
#define X_DB_SYMTABSIZE 1
- { "_db_symtabsize", NULL, 0 },
+ { "_db_symtabsize", 0, 0 },
{ NULL }
};
@@ -233,7 +237,7 @@
free(symbol_table);
for (s = symbols; s->name != NULL; s++) {
- if (s->vma == NULL)
+ if (s->vma == 0)
return (1);
for (p = abfd->sections; p != NULL; p = p->next) {
Home |
Main Index |
Thread Index |
Old Index