From: <fla...@gm...> - 2008-01-02 18:14:29
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1199296009 -3600 # Node ID c5624546ced191e161b4eaccf8f05195fb1d7010 # Parent 9ea2996418fcb3029594972bb290bc730a71a775 Mark id as constant, as we always use a literal. diff -r c5624546ced191e161b4eaccf8f05195fb1d7010 -r 9ea2996418fcb3029594972bb290bc730a71a775 include/xine/xine_plugin.h --- a/include/xine/xine_plugin.h Wed Jan 02 18:46:49 2008 +0100 +++ b/include/xine/xine_plugin.h Wed Jan 02 18:39:23 2008 +0100 @@ -50,7 +50,7 @@ typedef struct { typedef struct { uint8_t type; /* one of the PLUGIN_* constants above */ uint8_t API; /* API version supported by this plugin */ - char *id; /* a name that identifies this plugin */ + const char *id; /* a name that identifies this plugin */ uint32_t version; /* version number, increased every release */ const void *special_info; /* plugin-type specific, see structs below */ void *(*init)(xine_t *, void *); /* init the plugin class */ |