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:
parent
a90ba8d015
commit
1d07bbe106
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue