]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typos
authorPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 11:57:40 +0000 (19:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 8 Sep 2023 11:58:02 +0000 (19:58 +0800)
* src/android.c (android_set_task_name):

* src/sfnt.c (main): Test if fd < 0, not fd < 1.

src/android.c
src/sfnt.c

index 76014cbcb3a4e22b83528aa2872136a3eeda1bf8..e07b3a9935218fbd5b3b0c15a6b9ac951b441cd8 100644 (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);
index b66613eaa53e6856a57d7c20a41749ab5e21363e..efdf7b7f7649cad03832456dfaac20ef522c87f7 100644 (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;