From: Fredrik Fornwall Date: Fri, 29 Apr 2016 00:39:29 +0000 (+0200) Subject: Silence compiler warnings for ctermid return value X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/7f44723565c53f1781f13cc1ea61226bfa94d5db Silence compiler warnings for ctermid return value --- diff --git a/ndk_patches/stdio.h.patch b/ndk_patches/stdio.h.patch index c64fda15..325fcf3c 100644 --- a/ndk_patches/stdio.h.patch +++ b/ndk_patches/stdio.h.patch @@ -38,7 +38,7 @@ diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl + +/* Used by perl, fish, and others */ +static char* ctermid(char* s) { -+ if (s == 0) return "/dev/tty"; ++ if (s == 0) return (char*) "/dev/tty"; + strcpy(s, "/dev/tty"); + return s; +}