From e233317c25b82709d1f75fe24f67c76e978a13b5 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 19 Jun 2005 11:17:31 +0000 Subject: [PATCH] Cleanup. --- stepmania/src/archutils/Unix/BacktraceNames.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/stepmania/src/archutils/Unix/BacktraceNames.cpp b/stepmania/src/archutils/Unix/BacktraceNames.cpp index 1ba3cc0cd3..1679854725 100644 --- a/stepmania/src/archutils/Unix/BacktraceNames.cpp +++ b/stepmania/src/archutils/Unix/BacktraceNames.cpp @@ -121,8 +121,8 @@ void BacktraceNames::FromAddr( const void *p ) Dl_info di; if( !dladdr(p, &di) || di.dli_sname == NULL ) { - if( !dladdr( ((char *) p) - 8, &di) ) - return; + if( !dladdr( ((char *) p) - 8, &di) ) + return; } Symbol = di.dli_sname; @@ -160,7 +160,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include -const load_command *next_load_command( const load_command *cmd ) +static const load_command *next_load_command( const load_command *cmd ) { const char *p = (const char *) cmd; p += cmd->cmdsize; @@ -168,7 +168,7 @@ const load_command *next_load_command( const load_command *cmd ) } /* Return the image index of the given pointer, or -1 if not found. */ -int osx_find_image( const void *p ) +static int osx_find_image( const void *p ) { unsigned long image_count = _dyld_image_count(); @@ -204,7 +204,7 @@ int osx_find_image( const void *p ) return -1; } -const char *osx_find_link_edit( const struct mach_header *header ) +static const char *osx_find_link_edit( const struct mach_header *header ) { const struct load_command *cmd = (struct load_command *) &header[1]; for( unsigned i = 0; i < header->ncmds; i++, cmd = next_load_command(cmd) ) @@ -242,8 +242,8 @@ void BacktraceNames::FromAddr( const void *p ) const struct load_command *cmd = (struct load_command *) &header[1]; unsigned long diff = 0xffffffff; - const char *dli_sname = NULL; - void *dli_saddr = NULL; + const char *dli_sname = NULL; + void *dli_saddr = NULL; for( unsigned long i = 0; i < header->ncmds; i++, cmd = next_load_command(cmd) ) {