From f2037e3dca37d8fce700072dc159ea07b591f730 Mon Sep 17 00:00:00 2001 From: olsner Date: Sat, 28 Jun 2008 17:31:14 +0000 Subject: [PATCH] uint/size_t fixes This was SVN commit r6139. --- source/lib/sysdep/linux/ldbg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/lib/sysdep/linux/ldbg.cpp b/source/lib/sysdep/linux/ldbg.cpp index 2fbd22a092..6df45ed3c0 100644 --- a/source/lib/sysdep/linux/ldbg.cpp +++ b/source/lib/sysdep/linux/ldbg.cpp @@ -54,7 +54,7 @@ struct symbol_lookup_context bfd_vma address; const char* symbol; const char* filename; - size_t line; + uint line; bool found; }; @@ -143,9 +143,9 @@ static int slurp_symtab(symbol_file_context *ctx) symcount = bfd_canonicalize_symtab(abfd, *syms); if (symcount == 0) - symcount = bfd_read_minisymbols (abfd, FALSE, (void **)syms, (size_t *)&size); + symcount = bfd_read_minisymbols (abfd, FALSE, (void **)syms, (unsigned*)&size); if (symcount == 0) - symcount = bfd_read_minisymbols (abfd, TRUE /* dynamic */, (void **)syms, (size_t *)&size); + symcount = bfd_read_minisymbols (abfd, TRUE /* dynamic */, (void **)syms, (unsigned*)&size); if (symcount < 0) { @@ -199,7 +199,7 @@ static int read_symbols(const char *file_name, symbol_file_context *ctx) void udbg_bfd_init(void) { char n_path[PATH_MAX]; - char *exename=n_path; + const char *exename=n_path; if (sys_get_executable_name(n_path, sizeof(n_path)) != INFO::OK) { debug_printf("sys_get_executable_name didn't work, using hard-coded guess %s.\n", EXE_NAME);