1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix negated return value in sigisemptyset(3).

This commit is contained in:
Jonas 'Sortie' Termansen 2014-02-01 16:09:50 +01:00
parent 9d7a032f80
commit 6af85a5dd8

View file

@ -1,6 +1,6 @@
/******************************************************************************* /*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013. Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
This file is part of the Sortix C Library. This file is part of the Sortix C Library.
@ -29,6 +29,6 @@ extern "C" int sigisemptyset(const sigset_t* set)
{ {
for ( size_t i = 0; i < sizeof(set->__val) / sizeof(set->__val[0]); i++ ) for ( size_t i = 0; i < sizeof(set->__val) / sizeof(set->__val[0]); i++ )
if ( set->__val[i] != 0 ) if ( set->__val[i] != 0 )
return 1; return 0;
return 0; return 1;
} }