mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
util: Ignore return code from str_to_uint().
Reported by Coverity.
lib/util.c:795 Unchecked return value (CHECKED_RETURN):
As it's not really bug, wrap it with ignore().
Fixes: 9551e80bef
("tests: Use environment variable for default timeout.")
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
committed by
Eelco Chaudron
parent
e180c431b9
commit
37848e2188
@@ -734,7 +734,7 @@ ctl_timeout_setup(unsigned int secs)
|
|||||||
char *env = getenv("OVS_CTL_TIMEOUT");
|
char *env = getenv("OVS_CTL_TIMEOUT");
|
||||||
|
|
||||||
if (env && env[0]) {
|
if (env && env[0]) {
|
||||||
str_to_uint(env, 10, &secs);
|
ignore(str_to_uint(env, 10, &secs));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (secs) {
|
if (secs) {
|
||||||
|
@@ -119,7 +119,7 @@ def open_spell_check_dict():
|
|||||||
'tftp', 'timeval', 'trie', 'tso', 'ubsan', 'ukey',
|
'tftp', 'timeval', 'trie', 'tso', 'ubsan', 'ukey',
|
||||||
'umask', 'unassociated', 'unixctl', 'uuid'
|
'umask', 'unassociated', 'unixctl', 'uuid'
|
||||||
'virtqueue', 'vms', 'vnet', 'vport', 'vports',
|
'virtqueue', 'vms', 'vnet', 'vport', 'vports',
|
||||||
'vtep', 'wc', 'wget', 'xenserver']
|
'vtep', 'wc', 'wget', 'xenserver', 'util']
|
||||||
|
|
||||||
global spell_check_dict
|
global spell_check_dict
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user