Skip to content
GitLab
Menu
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
5f8b743f
Commit
5f8b743f
authored
Jul 25, 2012
by
Thomas Jahns
🤸
Browse files
Eliminate unnecessary field size.
parent
041b9bca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_posixfpguardsendrecv.c
View file @
5f8b743f
...
@@ -28,7 +28,6 @@ extern long initial_buffersize;
...
@@ -28,7 +28,6 @@ extern long initial_buffersize;
typedef
struct
typedef
struct
{
{
size_t
size
;
struct
dBuffer
*
db1
;
struct
dBuffer
*
db1
;
struct
dBuffer
*
db2
;
struct
dBuffer
*
db2
;
struct
dBuffer
*
db
;
struct
dBuffer
*
db
;
...
@@ -77,15 +76,14 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs)
...
@@ -77,15 +76,14 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs)
len
=
strlen
(
key
);
len
=
strlen
(
key
);
afd
=
xcalloc
(
1
,
sizeof
(
*
afd
)
+
len
+
1
);
afd
=
xcalloc
(
1
,
sizeof
(
*
afd
)
+
len
+
1
);
strcpy
(
afd
->
name
,
key
);
strcpy
(
afd
->
name
,
key
);
afd
->
size
=
bs
;
afd
->
tsID
=
0
;
afd
->
tsID
=
0
;
/* init output buffer */
/* init output buffer */
xdebug
(
" name=%s, init output buffer"
,
afd
->
name
);
xdebug
(
" name=%s, init output buffer"
,
afd
->
name
);
iret
=
dbuffer_init
(
&
(
afd
->
db1
),
afd
->
size
);
iret
=
dbuffer_init
(
&
(
afd
->
db1
),
bs
);
iret
+=
dbuffer_init
(
&
(
afd
->
db2
),
afd
->
size
);
iret
+=
dbuffer_init
(
&
(
afd
->
db2
),
bs
);
if
(
iret
>
0
)
if
(
iret
>
0
)
xabort
(
"dbuffer_init did not succeed"
);
xabort
(
"dbuffer_init did not succeed"
);
...
...
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