Silence compiler warnings for ctermid return value

This commit is contained in:
Fredrik Fornwall 2016-04-29 02:39:29 +02:00
parent 4d101ad751
commit 7f44723565
1 changed files with 1 additions and 1 deletions

View 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;
+}