Skip to content

Commit

Permalink
ola: fix compilation with musl 1.2.3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
neheb authored Apr 13, 2022
1 parent d1433a1 commit 418b825
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ola/AutoStart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ TCPSocket *ConnectToServer(unsigned short port) {
// Try to start the server, we pass --daemon (fork into background) and
// --syslog (log to syslog).
execlp("olad", "olad", "--daemon", "--syslog",
#ifdef __FreeBSD__
reinterpret_cast<char*>(0));
#else
reinterpret_cast<char*>(NULL));
#endif // __FreeBSD__
OLA_WARN << "Failed to exec: " << strerror(errno);
_exit(1);
}
Expand Down

0 comments on commit 418b825

Please sign in to comment.