rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()
This commit is contained in:
@@ -65,7 +65,7 @@ static int is_keepalive_packet(const char *data, int len)
|
||||
* Public API
|
||||
******************************************************************************/
|
||||
|
||||
struct packet_io_marsio *packet_io_marsio_create(struct packet_io_marsio_confg *config)
|
||||
struct packet_io_marsio *packet_io_marsio_new(struct packet_io_marsio_confg *config)
|
||||
{
|
||||
int opt = 1;
|
||||
cpu_set_t coremask;
|
||||
@@ -115,11 +115,11 @@ struct packet_io_marsio *packet_io_marsio_create(struct packet_io_marsio_confg *
|
||||
return handle;
|
||||
|
||||
error_out:
|
||||
packet_io_marsio_destory(handle);
|
||||
packet_io_marsio_free(handle);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void packet_io_marsio_destory(struct packet_io_marsio *handle)
|
||||
void packet_io_marsio_free(struct packet_io_marsio *handle)
|
||||
{
|
||||
if (handle)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user