Author: jhb Date: Wed Dec 14 00:21:06 2016 New Revision: 310046 URL: https://svnweb.freebsd.org/changeset/base/310046
Log: Add 'const' to fn_name's return type to remove a cast. Modified: head/sys/mips/mips/db_trace.c Modified: head/sys/mips/mips/db_trace.c ============================================================================== --- head/sys/mips/mips/db_trace.c Wed Dec 14 00:18:12 2016 (r310045) +++ head/sys/mips/mips/db_trace.c Wed Dec 14 00:21:06 2016 (r310046) @@ -105,7 +105,7 @@ static struct { /* * Map a function address to a string name, if known; or a hex string. */ -static char * +static const char * fn_name(uintptr_t addr) { static char buf[17]; @@ -113,12 +113,12 @@ fn_name(uintptr_t addr) db_expr_t diff; c_db_sym_t sym; - char *symname; + const char *symname; diff = 0; symname = NULL; sym = db_search_symbol((db_addr_t)addr, DB_STGY_ANY, &diff); - db_symbol_values(sym, (const char **)&symname, (db_expr_t *)0); + db_symbol_values(sym, &symname, NULL); if (symname && diff == 0) return (symname); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"