summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-dhcp6-config.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-02-15 12:20:55 +0100
committerLubomir Rintel <lkundrak@v3.sk>2017-02-15 13:04:07 +0100
commit84c484ed5b5d40ff42029140dc7b0a20d794ff46 (patch)
treeecd59288b3e7f4a051e08527f3e3026e839ca794 /libnm-glib/nm-dhcp6-config.c
parent1d40c5f476535f92fbeae78c7899f482e8a51f35 (diff)
downloadNetworkManager-84c484ed5b5d40ff42029140dc7b0a20d794ff46.tar.gz
cli: make match() return boolean
Coccinelle semantic patch: @@ @@ -int +gboolean matches (...); @@ expression pattern, cmd, len; @@ -int +gboolean matches (...) { ... - return memcmp (pattern, cmd, len); + return memcmp (pattern, cmd, len) == 0; } @@ expression prefix, str; @@ ( -matches (prefix, str) != 0 +!matches (prefix, str) | -matches (prefix, str) == 0 +matches (prefix, str) ) @@ expression prefix, str; @@ -(matches (prefix, str)) +matches (prefix, str) @@ expression prefix, str; @@ -(!matches (prefix, str)) +!matches (prefix, str) spatch --smpl-spacing --sp-file match.cocci --dir clients/cli/ \ --include-headers --macro-file shared/nm-utils/gsystem-local-alloc.h
Diffstat (limited to 'libnm-glib/nm-dhcp6-config.c')
0 files changed, 0 insertions, 0 deletions