mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-24 20:05:47 +02:00
Sprinkle some const.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: server-msg.c,v 1.14 2007-10-02 17:45:05 nicm Exp $ */
|
||||
/* $Id: server-msg.c,v 1.15 2007-10-03 09:17:00 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -45,7 +45,7 @@ struct server_msg {
|
||||
|
||||
int (*fn)(struct hdr *, struct client *);
|
||||
};
|
||||
struct server_msg server_msg_table[] = {
|
||||
const struct server_msg server_msg_table[] = {
|
||||
{ MSG_ATTACH, server_msg_fn_attach },
|
||||
{ MSG_CREATE, server_msg_fn_create },
|
||||
{ MSG_INPUT, server_msg_fn_input },
|
||||
@@ -68,7 +68,7 @@ int
|
||||
server_msg_dispatch(struct client *c)
|
||||
{
|
||||
struct hdr hdr;
|
||||
struct server_msg *msg;
|
||||
const struct server_msg *msg;
|
||||
u_int i;
|
||||
int n;
|
||||
|
||||
|
Reference in New Issue
Block a user