Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Simple PCIe FMC carrier SPEC - Software
Commits
d43d3419
Commit
d43d3419
authored
Jul 31, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fix data types
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
728fa03a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
speclib.c
tools/speclib.c
+1
-1
stamp-frame.c
tools/stamp-frame.c
+1
-1
wr-dio-agent.c
tools/wr-dio-agent.c
+1
-1
No files found.
tools/speclib.c
View file @
d43d3419
...
...
@@ -145,7 +145,7 @@ static void *spec_map_area(int bus, int dev, int bar, size_t size)
MAP_SHARED
,
fd
,
0
);
close
(
fd
);
if
((
int
)
ptr
==
-
1
)
if
((
long
)
ptr
==
-
1
)
return
NULL
;
return
ptr
;
...
...
tools/stamp-frame.c
View file @
d43d3419
...
...
@@ -168,7 +168,7 @@ static void __collect_data(struct msghdr *msgp, struct ts_data *tstamp)
for
(
cm
=
CMSG_FIRSTHDR
(
msgp
);
cm
;
cm
=
CMSG_NXTHDR
(
msgp
,
cm
))
{
tsptr
=
(
struct
timespec
*
)
CMSG_DATA
(
cm
);
if
(
0
)
{
printf
(
"level %i, type %i, len %i
\n
"
,
cm
->
cmsg_level
,
printf
(
"level %i, type %i, len %
l
i
\n
"
,
cm
->
cmsg_level
,
cm
->
cmsg_type
,
cm
->
cmsg_len
);
}
if
(
cm
->
cmsg_level
!=
SOL_SOCKET
)
...
...
tools/wr-dio-agent.c
View file @
d43d3419
...
...
@@ -116,7 +116,7 @@ int main(int argc, char **argv)
len
=
recv
(
agent_sock
,
&
f
,
sizeof
(
f
),
MSG_TRUNC
);
if
(
len
!=
sizeof
(
f
))
{
fprintf
(
stderr
,
"%s: recevied unexpected frame length"
" (%i instead of %
i
)
\n
"
,
agent_prgname
,
len
,
" (%i instead of %
lu
)
\n
"
,
agent_prgname
,
len
,
sizeof
(
f
));
continue
;
}
...
...
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