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:
committed by
Daniele Di Proietto
parent
b379037079
commit
aacf18c3a7
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user