Module: ngircd.git Branch: master Commit: 8605e9c0fe7ffa42149271c9af31288bd4a0dfac URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=8605e...
Author: Alexander Barton alex@barton.de Date: Sat Jun 26 00:37:06 2010 +0200
const'ify command name variable in _COMMAND strcuture
---
src/ngircd/parse.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/parse.h b/src/ngircd/parse.h index a3f764e..205dbb8 100644 --- a/src/ngircd/parse.h +++ b/src/ngircd/parse.h @@ -30,7 +30,7 @@ typedef struct _REQUEST /* vgl. RFC 2812, 2.3 */
typedef struct _COMMAND { - char *name; /* command name */ + const char *name; /* command name */ bool (*function) PARAMS(( CLIENT *Client, REQUEST *Request )); CLIENT_TYPE type; /* valid client types (bit mask) */ long lcount, rcount; /* number of local and remote calls */