actube compiles again

FossilOrigin-Name: b4d49cce87d73a9c8e5bff97bda7cde9586849cfce0b6261dfee1fb7b7097d0f
This commit is contained in:
7u83@mail.ru
2018-03-25 17:13:58 +00:00
parent b57056b094
commit 11ee224d78
7 changed files with 17 additions and 15 deletions

View File

@ -190,10 +190,11 @@ static int init_vendor_id()
return 1;
}
/*
static int init_version()
{
/* Init hardware version */
// Init hardware version
if (!conf_hardware_version) {
struct utsname u;
int rc = uname(&u);
@ -210,31 +211,26 @@ static int init_version()
bstr_replace(&conf_hardware_version,
bstr_create_from_cfgstr((char *) conf_hardware_version));
/* software version */
// software version
if (!conf_software_version)
conf_software_version = (bstr_t) strdup(CONF_DEFAULT_SOFTWARE_VERSION);
bstr_replace(&conf_software_version,
bstr_create_from_cfgstr((char *) conf_software_version));
/* Cisco hardware version */
// Cisco hardware version
if (!conf_cisco_hardware_version)
conf_cisco_hardware_version =
(bstr_t) strdup(CONF_DEFAULT_CISCO_HARDWARE_VERSION);
bstr_replace(&conf_cisco_hardware_version,
bstr_create_from_cfgstr((char *) conf_cisco_hardware_version));
/* Cisco software version */
/*
if (!conf_cisco_software_version)
conf_cisco_software_version=(bstr_t)strdup(CONF_DEFAULT_CISCO_SOFTWARE_VERSION);
bstr_replace(&conf_cisco_software_version,bstr_create_from_cfgstr((char*)conf_cisco_software_version));
*/
return 1;
}
*/
static int init_control_port()
{
@ -809,9 +805,9 @@ int read_config(const char *filename)
if (!init_acname())
return 0;
if (!init_version())
/* if (!init_version())
return 0;
*/
if (!init_vendor_id())
return 0;

View File

@ -5,6 +5,7 @@
#include "cw/timer.h"
#include "cw/cw.h"
#include "cw/format.h"
#include "cw/netconn.h"
#include "cw/log.h"
#include "cw/dbg.h"

View File

@ -3,7 +3,7 @@
#include <pthread.h>
#include "cw/netconn.h"
/*#include "cw/netconn.h"*/
#include "wtpman.h"