From 1d07bbe106146ba70382ac66cfe1aa514bd61ea5 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 8 Sep 2023 19:57:40 +0800 Subject: [PATCH] Fix typos * src/android.c (android_set_task_name): * src/sfnt.c (main): Test if fd < 0, not fd < 1. --- src/android.c | 2 +- src/sfnt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5