ios-toolchain: cleanup

This commit is contained in:
Thomas Pöchtrager 2014-12-27 12:33:50 +01:00
parent 9c0f520110
commit 70b87ceec0
2 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,7 @@ function verbose_cmd
function extract()
{
echo "extracting `basename $1` ..."
echo "extracting $(basename $1) ..."
local tarflags="xf"
case $1 in
@ -32,7 +32,7 @@ function extract()
*)
echo "unhandled archive type"
exit 1
;;
;;
esac
}

View File

@ -28,8 +28,7 @@ char *get_executable_path(char *buf, size_t len)
char *p;
#ifdef __APPLE__
unsigned int l = len;
if (_NSGetExecutablePath(buf, &l) != 0)
return NULL;
if (_NSGetExecutablePath(buf, &l) != 0) return NULL;
#elif defined(__FreeBSD__)
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
size_t l = len;