projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00960e
)
Replace <string.h>
author
David Schleef
<ds@schleef.org>
Sun, 15 Jul 2001 19:57:08 +0000
(19:57 +0000)
committer
David Schleef
<ds@schleef.org>
Sun, 15 Jul 2001 19:57:08 +0000
(19:57 +0000)
demo/cmd.c
patch
|
blob
|
history
diff --git
a/demo/cmd.c
b/demo/cmd.c
index 091284de17a95ee5c27fc1e08f2f71ea0fe3aeec..d40ff805342d95bded746e5fc86f129e1dd80e4f 100644
(file)
--- a/
demo/cmd.c
+++ b/
demo/cmd.c
@@
-21,6
+21,7
@@
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
+#include <string.h>
#include "examples.h"
#define BUFSZ 10000
@@
-204,7
+205,7
@@
int prepare_cmd_lib(comedi_t *dev,int subdevice,comedi_cmd *cmd)
*/
int prepare_cmd(comedi_t *dev,int subdevice,comedi_cmd *cmd)
{
- memset(cmd,0,sizeof(cmd));
+ memset(cmd,0,sizeof(
*
cmd));
/* the subdevice that the command is sent to */
cmd->subdev = subdevice;