diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 2001-03-07 02:57:08 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 2001-03-07 02:57:08 +0000 |
commit | 5565b5569bf75adccb29b590f5433aeb9dda3314 (patch) | |
tree | 472c48a14643f0b6257dda99f19c20ae6750008e /gdb/utils.c | |
parent | 1ae12ab72a132da996892dbf5be389a2e7b4e762 (diff) | |
download | gdb-5565b5569bf75adccb29b590f5433aeb9dda3314.zip gdb-5565b5569bf75adccb29b590f5433aeb9dda3314.tar.gz gdb-5565b5569bf75adccb29b590f5433aeb9dda3314.tar.bz2 |
2001-03-06 J.T. Conklin <jtc@redback.com>
* symtab.h (decode_line_1): Removed declaration.
* symfile.c (#include <assert.h>): Removed.
* arch-utils.c (#include <ctype.h>): Removed.
* c-typeprint.c: Likewise.
* dbxread.c: Likewise.
* gdbtypes.c: Likewise.
* target.c: Likewise.
* os9kread.c: Likewise.
* c-valprint.c (#include "demangle.h"): Removed.
* ch-typeprint.c: Likewise.
* eval.c: Likewise.
* f-typeprint.c: Likewise.
* f-valprint.c: Likewise.
* m2-typeprint.c: Likewise.
* typeprint.c: Likewise.
* p-typeprint.c: Likewise.
* valarith.c: Likewise.
* valprint.c: Likewise.
* m2-typeprint.c (#include "gdb_string.h"): Removed.
* nlmread.c: Likewise.
* mdebugread.c (#include "gdb-stabs.h"): Removed.
* minsyms.c: Likewise.
* mipsread.c: Likewise.
* nlmread.c: Likewise.
* m2-typeprint.c (#include "obstack.h"): Removed.
* m2-valprint.c: Likewise.
* event-loop.c (#include <setjmp.h>): Removed.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 79536de..df6046a 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1155,7 +1155,7 @@ myread (int desc, char *addr, int len) Uses malloc to get the space. Returns the address of the copy. */ char * -savestring (const char *ptr, int size) +savestring (const char *ptr, size_t size) { register char *p = (char *) xmalloc (size + 1); memcpy (p, ptr, size); @@ -1164,7 +1164,7 @@ savestring (const char *ptr, int size) } char * -msavestring (void *md, const char *ptr, int size) +msavestring (void *md, const char *ptr, size_t size) { register char *p = (char *) xmmalloc (md, size + 1); memcpy (p, ptr, size); |