optimize code standards

This commit is contained in:
Liu_Weichao
2021-04-29 12:55:01 +08:00
parent 34383bdcde
commit b4e108d620
29 changed files with 116 additions and 142 deletions

View File

@@ -336,7 +336,7 @@ static void ATAgentReceiveProcess(void *param)
static int ATAgentInit(ATAgentType agent)
{
int result = EOK;
utask_x at_utask;
UtaskType at_utask;
do
{
agent->maintain_len = 0;

View File

@@ -105,7 +105,7 @@ int ZigbeeReceive(struct Adapter *padapter, char* rev_buffer, int buffer_len,int
x_err_t ret = EOK;
/* Set callback function */
/* Create thread serial */
utask_x recv;
UtaskType recv;
recv.name[0] = 'z';
recv.func_entry = SerialThreadEntry;
recv.func_param = NONE;

View File

@@ -71,7 +71,7 @@ static int SensorDeviceOpen(struct SensorDevice *sdev)
result = ioctl(sdev->fd, OPE_INT, &cfg);
utask_x active_task;
UtaskType active_task;
const char name[NAME_NUM_MAX] = "ps5308_task";
strncpy(active_task.name, name, strlen(name));

View File

@@ -71,7 +71,7 @@ static int SensorDeviceOpen(struct SensorDevice *sdev)
result = ioctl(sdev->fd, OPE_INT, &cfg);
utask_x active_task;
UtaskType active_task;
const char name[NAME_NUM_MAX] = "d124_task";
strncpy(active_task.name, name, strlen(name));