diff options
author | Barak A. Pearlmutter <barak+git@pearlmutter.net> | 2019-02-19 12:06:01 +0000 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-02-24 08:48:52 +0100 |
commit | 5dd2d386e5edacb1f4e283b38a82ebeddaa1290a (patch) | |
tree | f067dc5a6eeb72c287efa2ef88a90b94460e5f60 | |
parent | 9220e3baee18cbfa18b9f308ff19df15b3b61296 (diff) |
null char
conffile.c:225:12: warning: assignment to `char' from `void *' makes integer from pointer without a cast [-Wint-conversion]
slash[0] = NULL;
^
conffile.c:240:12: warning: assignment to `char' from `void *' makes integer from pointer without a cast [-Wint-conversion]
slash[0] = NULL;
^
Gbp-Pq: Name 0011-null-char.patch
-rw-r--r-- | conffile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -222,7 +222,7 @@ static void config_map(int ln, int arg_count, char **args) unsigned int prefix4 = 32; if (slash) { prefix4 = atoi(slash+1); - slash[0] = NULL; + slash[0] = '\0'; } if (!inet_pton(AF_INET, args[0], &m->map4.addr)) { @@ -237,7 +237,7 @@ static void config_map(int ln, int arg_count, char **args) slash = strchr(args[1], '/'); if (slash) { prefix6 = atoi(slash+1); - slash[0] = NULL; + slash[0] = '\0'; } if ((32 - prefix4) != (128 - prefix6)) { |