2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

sockets: tiny style fix

Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2022-12-12 09:32:58 -08:00
parent 5a19c34322
commit 5c60d35be4

View File

@ -652,8 +652,7 @@ int dump_socket_opts(int sk, SkOptsEntry *soe)
* in unprivileged mode if still has its default value.
*/
ret |= dump_opt(sk, SOL_SOCKET, SO_MARK, &soe->so_mark);
if (soe->so_mark != 0)
soe->has_so_mark = true;
soe->has_so_mark = !!soe->so_mark;
ret |= dump_opt(sk, SOL_SOCKET, SO_SNDTIMEO, &tv);
soe->so_snd_tmo_sec = tv.tv_sec;