projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ce707
)
fix for comedi_get_generic_timed() from Jan Gukelberger <g.u.g.i@gmx.de>
author
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 25 Apr 2005 21:41:48 +0000
(21:41 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 25 Apr 2005 21:41:48 +0000
(21:41 +0000)
lib/cmd.c
patch
|
blob
|
history
diff --git
a/lib/cmd.c
b/lib/cmd.c
index 7a3c042c32302a0d069865e1f7c51adede538489..a08a1d1b4db413a7c4e550c9d2974d0d121bb99d 100644
(file)
--- a/
lib/cmd.c
+++ b/
lib/cmd.c
@@
-172,14
+172,13
@@
int _comedi_get_cmd_generic_timed(comedi_t *it,unsigned int subd,comedi_cmd *cmd
return -1;
}
- if(!s->cmd_timed)
{
+ if(!s->cmd_timed)
s->cmd_timed = malloc(sizeof(comedi_cmd));
- ret = __generic_timed(it,subd,s->cmd_timed,ns);
- if(ret<0){
- s->cmd_mask_errno = errno;
- return -1;
- }
+ ret = __generic_timed(it,subd,s->cmd_timed,ns);
+ if(ret<0){
+ s->cmd_mask_errno = errno;
+ return -1;
}
*cmd=*s->cmd_timed;
return 0;