mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 06:48:01 +02:00
_dbus_global_lock: move success case up into switch
This silences -Wswitch-default. Based on part of a patch from Thomas Zimmermann. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
This commit is contained in:
parent
b044fa0c70
commit
6facca0336
1 changed files with 2 additions and 2 deletions
|
|
@ -2717,9 +2717,9 @@ HANDLE _dbus_global_lock (const char *mutexname)
|
|||
case WAIT_FAILED:
|
||||
case WAIT_TIMEOUT:
|
||||
return 0;
|
||||
default:
|
||||
return mutex;
|
||||
}
|
||||
|
||||
return mutex;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue