Merge branch 'prepare_for_master' of https://git.trustie.net/xuos/xiuos into jerryscript

This commit is contained in:
wgzAIIT
2023-09-11 10:12:03 +08:00
37 changed files with 2282 additions and 1728 deletions

View File

@@ -324,7 +324,7 @@ void TestSocket(int argc, char* argv[])
return;
} else {
memset(iperf_param.host, 0, sizeof(iperf_param.host));
strncpy(iperf_param.host, ip_ptr, strlen(ip_ptr));
strncpy(iperf_param.host, ip_ptr, sizeof(iperf_param.host));
}
iperf_mode->mode = IPERF_MODE_CLIENT;
}

View File

@@ -206,7 +206,7 @@ static int PrivLcdIoctl(int fd, int cmd, void *args)
int PrivIoctl(int fd, int cmd, void *args)
{
int ret;
int ret = -ERROR;
struct PrivIoctlCfg *ioctl_cfg = (struct PrivIoctlCfg *)args;
switch (ioctl_cfg->ioctl_driver_type)
{

View File

@@ -66,7 +66,7 @@ int timer_create(clockid_t clockid, struct sigevent * evp, timer_t * timerid)
}
memset(timer_name, 0, sizeof(timer_name));
snprintf(timer_name, sizeof(timer_name), "timer_%d", clockid);
snprintf(timer_name, sizeof(timer_name), "timer_%ld", clockid);
sem_init(&timer_sem, 0, 0);

View File

@@ -10,7 +10,7 @@ menu "lib using MQTT"
menu "MQTT connection parameter configuration."
config PLATFORM_PRODUCTKEY
string "Product Key, used to identify a product."
default "iywhcgnuezz"
default "iv74vebCdJC"
config CLIENT_DEVICENAME
string "Device name, used to identify a client device."
@@ -18,7 +18,7 @@ menu "lib using MQTT"
config CLIENT_DEVICESECRET
string "Device secret, used for device authentication and data encryption."
default "c9a4ce03e9382065fc089e9ff54b771d"
default "d2e613c4f714b6b0774bd7b68eeceae3"
config PLATFORM_SERVERIP
string "mqtt platform server ip."