|| -> or for consistency
This commit is contained in:
parent
28982aae92
commit
7d4a83a449
|
@ -21,7 +21,7 @@
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
#if defined(__FreeBSD__) or defined(__NetBSD__)
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -624,7 +624,7 @@ String get_kak_binary_path()
|
||||||
kak_assert(res != -1);
|
kak_assert(res != -1);
|
||||||
buffer[res] = '\0';
|
buffer[res] = '\0';
|
||||||
return buffer;
|
return buffer;
|
||||||
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
#elif defined(__FreeBSD__) or defined(__NetBSD__)
|
||||||
int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
|
int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
|
||||||
size_t res = sizeof(buffer);
|
size_t res = sizeof(buffer);
|
||||||
sysctl(mib, 4, buffer, &res, NULL, 0);
|
sysctl(mib, 4, buffer, &res, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user