aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry/registry.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
commit58f8347e84d2820cada64c513bb0f2b81ecd494a (patch)
tree758f5f2241c384b8d0e8ce349498784515ae5607 /src/mds-registry/registry.c
parentAdd -l flags for mds-libinput (diff)
downloadmds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.gz
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.bz2
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.xz
Fix new GCC warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/mds-registry/registry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c
index 964b55f..77cd463 100644
--- a/src/mds-registry/registry.c
+++ b/src/mds-registry/registry.c
@@ -155,7 +155,7 @@ static int registry_action_add(int has_key, char* command, size_t command_key, u
void* address;
fail_if (xmalloc(address = list, 1, client_list_t));
/* Duplicate the protocol name so it can be accessed later. */
- if (xstrdup(command, command))
+ if (xstrdup_nn(command, command))
{
saved_errno = errno, free(list), errno = saved_errno;
fail_if (1);
@@ -240,7 +240,7 @@ static int registry_action_act(char* command, int action, uint64_t client, hash_
else if ((action == 0) && !has_key)
{
/* Add protocol to wait set of not present in the protocol table. */
- fail_if (xstrdup(command, command));
+ fail_if (xstrdup_nn(command, command));
command_key = (size_t)(void*)command;
if (hash_table_put(wait_set, command_key, 1) == 0)
if (errno)