1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00

Fix typos

* src/android.c (android_set_task_name):

* src/sfnt.c (main): Test if fd < 0, not fd < 1.
This commit is contained in:
Po Lu 2023-09-08 19:57:40 +08:00
parent a90ba8d015
commit 1d07bbe106
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;