2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

util: Expose function nullable_string_is_equal.

Implementation of 'nullable_string_is_equal()' moved to util.c and
reused inside dpif-netdev.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
This commit is contained in:
Ilya Maximets
2016-07-15 14:54:53 +03:00
committed by Daniele Di Proietto
parent b379037079
commit aacf18c3a7
5 changed files with 9 additions and 24 deletions

View File

@@ -157,6 +157,12 @@ nullable_xstrdup(const char *s)
return s ? xstrdup(s) : NULL;
}
bool
nullable_string_is_equal(const char *a, const char *b)
{
return a ? b && !strcmp(a, b) : !b;
}
char *
xvasprintf(const char *format, va_list args)
{