chiark / gitweb /
Silence compiler warnings for ctermid return value
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 29 Apr 2016 00:39:29 +0000 (02:39 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 29 Apr 2016 00:39:29 +0000 (02:39 +0200)
ndk_patches/stdio.h.patch

index c64fda15602331ac02862c665403fa1893ee8ea7..325fcf3cd097ac30657c3bd999f2e4c7f53e0c3e 100644 (file)
@@ -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;
 +}