warnings: use more 'const' for char *

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe
2010-12-29 22:07:21 +01:00
parent 8f93c0a3fe
commit 4f9a9b8eba
25 changed files with 30 additions and 30 deletions

View File

@@ -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)
{

View File

@@ -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;