Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
016d1de4
Commit
016d1de4
authored
Jun 16, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/sm_io/sm_io.c: fix wrong error code comparison
parent
c265dd90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sm_io.c
src/sm_io/sm_io.c
+3
-3
No files found.
src/sm_io/sm_io.c
View file @
016d1de4
...
...
@@ -316,7 +316,7 @@ smio_err_e smio_export_ops (smio_t *self, const disp_op_t** smio_exp_ops)
smio_err_e
err
=
SMIO_SUCCESS
;
disp_table_err_e
derr
=
disp_table_insert_all
(
self
->
exp_ops_dtable
,
smio_exp_ops
);
ASSERT_TEST
(
derr
==
HUTILS
_SUCCESS
,
"smio_export_ops: Could not export"
ASSERT_TEST
(
derr
==
DISP_TABLE
_SUCCESS
,
"smio_export_ops: Could not export"
" SMIO ops"
,
err_export_op
,
SMIO_ERR_EXPORT_OP
);
err
=
SMIO_FUNC_OPS_NOFAIL_WRAPPER
(
err
,
export_ops
,
smio_exp_ops
);
...
...
@@ -336,7 +336,7 @@ smio_err_e smio_unexport_ops (smio_t *self)
smio_err_e
err
=
SMIO_SUCCESS
;
disp_table_err_e
derr
=
disp_table_remove_all
(
self
->
exp_ops_dtable
);
ASSERT_TEST
(
derr
==
HUTILS
_SUCCESS
,
"smio_export_ops: Could not unexport SMIO ops"
,
ASSERT_TEST
(
derr
==
DISP_TABLE
_SUCCESS
,
"smio_export_ops: Could not unexport SMIO ops"
,
err_unexport_op
,
SMIO_ERR_EXPORT_OP
);
err
=
SMIO_FUNC_OPS_NOFAIL_WRAPPER
(
err
,
unexport_ops
);
...
...
@@ -361,7 +361,7 @@ smio_err_e smio_init_exp_ops (smio_t *self, disp_op_t** smio_exp_ops,
disp_table_err_e
derr
=
DISP_TABLE_SUCCESS
;
smio_err_e
err
=
SMIO_SUCCESS
;
derr
=
disp_table_fill_desc
(
self
->
exp_ops_dtable
,
smio_exp_ops
,
func_fps
);
ASSERT_TEST
(
derr
==
HUTILS
_SUCCESS
,
"smio_export_ops: Could not export"
ASSERT_TEST
(
derr
==
DISP_TABLE
_SUCCESS
,
"smio_export_ops: Could not export"
" fill SMIO ops description"
,
err_fill_desc_ops
,
SMIO_ERR_EXPORT_OP
);
err_fill_desc_ops:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment