Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
718e93e7
Commit
718e93e7
authored
May 16, 2011
by
Thomas Jahns
🤸
Browse files
Add variable initializations.
* Return invalid id in case the user passed an invalid method.
parent
b581ef7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio.c
View file @
718e93e7
...
...
@@ -8,6 +8,7 @@
#include
<string.h>
#include
<unistd.h>
#include
"cdi.h"
#include
"pio.h"
#include
"pio_util.h"
...
...
@@ -80,7 +81,7 @@ void ungetTag ( rTag *rtag )
size_t
pioFileWrite
(
int
id
,
int
tsId
,
const
void
*
buffer
,
size_t
len
)
{
size_t
iret
;
size_t
iret
=
CDI_UNDEFID
;
switch
(
pioinfo
->
type
)
{
...
...
@@ -113,7 +114,7 @@ size_t pioFileWrite ( int id, int tsId, const void *buffer, size_t len )
int
pioFileClose
(
int
id
)
{
int
iret
;
int
iret
=
CDI_UNDEFID
;
switch
(
pioinfo
->
type
)
{
...
...
@@ -146,7 +147,7 @@ int pioFileClose ( int id )
int
pioFileOpenW
(
const
char
*
filename
)
{
int
iret
;
int
iret
=
CDI_UNDEFID
;
switch
(
pioinfo
->
type
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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