warnings: use more 'const' for char *
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -306,7 +306,7 @@ static int remove_services(void)
|
||||
struct service *next = c->next;
|
||||
|
||||
if (c->name)
|
||||
free(c->name);
|
||||
free((void *)c->name);
|
||||
|
||||
if (c->type == CONNECTION_PIPE)
|
||||
{
|
||||
|
||||
@@ -57,7 +57,7 @@ typedef int (*connection_closed_handler_t)(struct connection *connection);
|
||||
|
||||
struct service
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
enum connection_type type;
|
||||
const char *port;
|
||||
unsigned short portnumber;
|
||||
|
||||
Reference in New Issue
Block a user