mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 12:19:40 +00:00
ios-toolchain: cleanup
This commit is contained in:
parent
9c0f520110
commit
70b87ceec0
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user