Cleanup.
This commit is contained in:
@@ -160,7 +160,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
#include <mach-o/nlist.h>
|
#include <mach-o/nlist.h>
|
||||||
|
|
||||||
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;
|
const char *p = (const char *) cmd;
|
||||||
p += cmd->cmdsize;
|
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. */
|
/* 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();
|
unsigned long image_count = _dyld_image_count();
|
||||||
|
|
||||||
@@ -204,7 +204,7 @@ int osx_find_image( const void *p )
|
|||||||
return -1;
|
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];
|
const struct load_command *cmd = (struct load_command *) &header[1];
|
||||||
for( unsigned i = 0; i < header->ncmds; i++, cmd = next_load_command(cmd) )
|
for( unsigned i = 0; i < header->ncmds; i++, cmd = next_load_command(cmd) )
|
||||||
|
|||||||
Reference in New Issue
Block a user