1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

removed const qualifier to silence compiler warnings

This commit is contained in:
Steffen Vogel 2015-12-12 12:40:55 +01:00
parent 6fba4d4b85
commit 59d76a3d7d
2 changed files with 5 additions and 5 deletions

View file

@ -162,7 +162,7 @@ struct node
const char *name; /**< A short identifier of the node, only used for configuration and logging */
char *_name; /**< Singleton: A string used to print to screen. */
const char *_name_long; /**< Singleton: A string used to print to screen. */
char *_name_long; /**< Singleton: A string used to print to screen. */
int combine; /**< Number of messages to send / recv at once (scatter / gather) */
int affinity; /**< CPU Affinity of this node */
@ -228,7 +228,7 @@ int node_parse(struct node *n, config_setting_t *cfg);
* @see node::_name
* @param n A pointer to the node structure.
*/
const char * node_name(struct node *n);
char * node_name(struct node *n);
/** Return a pointer to a string which should be used to print this node
*
@ -236,7 +236,7 @@ const char * node_name(struct node *n);
* @see node_type::print
* @param n A pointer to the node structure.
*/
const char * node_name_long(struct node *n);
char * node_name_long(struct node *n);
/** Receive multiple messages at once.
*

View file

@ -97,7 +97,7 @@ int node_stop(struct node *n)
return ret;
}
const char * node_name(struct node *n)
char * node_name(struct node *n)
{
if (!n->_name)
strcatf(&n->_name, RED("%s") "(" YEL("%s") ")", n->name, n->_vt->name);
@ -105,7 +105,7 @@ const char * node_name(struct node *n)
return n->_name;
}
const char * node_name_long(struct node *n)
char * node_name_long(struct node *n)
{
if (!n->_name_long) {
if (n->_vt->print) {