Feature/router bsd (#821)
* fix router compile warnings declaration-after-statement overlength-strings * router disable PRINT(debug_level) * ports rename dlmstp_[linux|bsd] to dlmstp_port * copy ports/linux/dlmstp_port.c ports/bsd/dlmstp_port.c * copy ports/linux/dlmstp_port.c ports/bsd/dlmstp_port.c * fix typedef in bip_get_local_address_ioctl * copy ports/linux/dlmstp_port.c ports/bsd/dlmstp_port.c * add bsd support for router app * fix clang __attribute__ optimize dont work clang O2/O3/Os are also not working * fix pre-commit * fix bsd SO_BINDTODEVICE is not available * add brew install libconfig for app router and bsd * fix BACDL_MSTP test on macOS * remove old comments
This commit is contained in:
+3
-2
@@ -40,7 +40,7 @@
|
||||
#include <sys/select.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "dlmstp_bsd.h"
|
||||
#include "dlmstp_port.h"
|
||||
|
||||
#if defined(__APPLE__) || defined(__darwin__)
|
||||
#include <IOKit/serial/ioss.h>
|
||||
@@ -118,7 +118,8 @@ static void closeSerialPort(int fileDescriptor);
|
||||
void RS485_Set_Interface(char *ifname)
|
||||
{
|
||||
/* note: expects a constant char, or char from the heap */
|
||||
if (ifname) {
|
||||
if (ifname && ifname != NULL) {
|
||||
printf("### RS485_Set_Interface %s\n", ifname);
|
||||
RS485_Port_Name = ifname;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user