From: Po Lu Date: Fri, 8 Sep 2023 11:57:40 +0000 (+0800) Subject: Fix typos X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d07bbe106146ba70382ac66cfe1aa514bd61ea5;p=emacs.git Fix typos * src/android.c (android_set_task_name): * src/sfnt.c (main): Test if fd < 0, not fd < 1. --- diff --git a/src/android.c b/src/android.c index 76014cbcb3a..e07b3a99352 100644 --- a/src/android.c +++ b/src/android.c @@ -301,7 +301,7 @@ android_set_task_name (const char *name) sprintf (proc_name, "/proc/self/task/%ld/comm", (long) lwp); fd = open (proc_name, O_WRONLY | O_TRUNC); - if (fd < 1) + if (fd < 0) goto failure; length = strlen (name); diff --git a/src/sfnt.c b/src/sfnt.c index b66613eaa53..efdf7b7f764 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -19185,7 +19185,7 @@ main (int argc, char **argv) fd = open (argv[1], O_RDONLY); - if (fd < 1) + if (fd < 0) return 1; ttc = NULL;