Always pass request strings to other functions as const char *.
This commit is contained in:
parent
291a59b5b7
commit
58007d7efa
8 changed files with 54 additions and 52 deletions
|
|
@ -50,7 +50,7 @@ bool send_add_edge(connection_t *c, const edge_t *e) {
|
|||
return x;
|
||||
}
|
||||
|
||||
bool add_edge_h(connection_t *c, char *request) {
|
||||
bool add_edge_h(connection_t *c, const char *request) {
|
||||
edge_t *e;
|
||||
node_t *from, *to;
|
||||
char from_name[MAX_STRING_SIZE];
|
||||
|
|
@ -167,7 +167,7 @@ bool send_del_edge(connection_t *c, const edge_t *e) {
|
|||
e->from->name, e->to->name);
|
||||
}
|
||||
|
||||
bool del_edge_h(connection_t *c, char *request) {
|
||||
bool del_edge_h(connection_t *c, const char *request) {
|
||||
edge_t *e;
|
||||
char from_name[MAX_STRING_SIZE];
|
||||
char to_name[MAX_STRING_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue