projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90ba8d
)
Fix typos
author
Po Lu
<luangruo@yahoo.com>
Fri, 8 Sep 2023 11:57:40 +0000
(19:57 +0800)
committer
Po 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
patch
|
blob
|
history
src/sfnt.c
patch
|
blob
|
history
diff --git
a/src/android.c
b/src/android.c
index 76014cbcb3a4e22b83528aa2872136a3eeda1bf8..e07b3a9935218fbd5b3b0c15a6b9ac951b441cd8 100644
(file)
--- 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 b66613eaa53e6856a57d7c20a41749ab5e21363e..efdf7b7f7649cad03832456dfaac20ef522c87f7 100644
(file)
--- 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;