Skip to content

Commit 418b825

Browse files
authored
ola: fix compilation with musl 1.2.3
musl 1.2.3 defines NULL as nullptr. Cannot use reinterpret_cast with nullptr. No idea why this is even here. NULL in C == 0.
1 parent d1433a1 commit 418b825

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ola/AutoStart.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ TCPSocket *ConnectToServer(unsigned short port) {
110110
// Try to start the server, we pass --daemon (fork into background) and
111111
// --syslog (log to syslog).
112112
execlp("olad", "olad", "--daemon", "--syslog",
113-
#ifdef __FreeBSD__
114113
reinterpret_cast<char*>(0));
115-
#else
116-
reinterpret_cast<char*>(NULL));
117-
#endif // __FreeBSD__
118114
OLA_WARN << "Failed to exec: " << strerror(errno);
119115
_exit(1);
120116
}

0 commit comments

Comments
 (0)