Skip to content

Commit fc8ddce

Browse files
committed
Chore: use ffStrEquals instead of strcmp
1 parent dd67010 commit fc8ddce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/platform/FFPlatform_unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ static void getSysinfo(FFPlatformSysinfo* info, const struct utsname* uts)
204204
ffStrbufAppendS(&info->version, uts->version);
205205
#ifdef __HAIKU__
206206
/* historical reason */
207-
if (!strcmp(uts->machine, "BePC"))
208-
ffStrbufAppendS(&info->architecture, "i386");
207+
if (ffStrEquals(uts->machine, "BePC"))
208+
ffStrbufSetStatic(&info->architecture, "i386");
209209
else
210210
#endif
211211
ffStrbufAppendS(&info->architecture, uts->machine);

0 commit comments

Comments
 (0)