Skip to content

Commit

Permalink
Fix errno for x86 target.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Jun 5, 2024
1 parent 14703ef commit 90649cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dse/clib/data/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
//
// SPDX-License-Identifier: Apache-2.0

#include <string.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <dse/testing.h>
#include <dse/platform.h>
#include <dse/logger.h>
Expand Down Expand Up @@ -252,7 +253,7 @@ MarshalSignalMap* marshal_generate_signalmap(MarshalMapSpec signal,
/* Match. */
if (set_contains(ex_signals, signal.signal[i]) == SET_TRUE) {
/* Signal already mapped. */
errno = -ENOTUNIQ;
errno = -EINVAL;
for (uint32_t i = 0; i < hashlist_length(&index_list);
i++) {
free(hashlist_at(&index_list, i));
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void test_marshal__signalmap_generate(void** state)
},
.expect = {
.is_null = true,
._errno = -ENOTUNIQ,
._errno = -EINVAL,
}
},
{
Expand Down

0 comments on commit 90649cc

Please sign in to comment.