Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC DEL 1ns 4cha - Software
Commits
c2ea6531
Commit
c2ea6531
authored
Aug 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fix gcc warnings
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
7a82332b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
fd-core.c
kernel/fd-core.c
+1
-1
fmc-fdelay-pulse.c
tools/fmc-fdelay-pulse.c
+5
-5
No files found.
kernel/fd-core.c
View file @
c2ea6531
...
...
@@ -134,7 +134,7 @@ int fd_probe(struct fmc_device *fmc)
struct
fd_modlist
*
m
;
struct
fd_dev
*
fd
;
struct
device
*
dev
=
&
fmc
->
dev
;
char
*
fwname
;
char
*
fwname
=
"invalid"
;
int
i
,
index
,
ret
,
ch
,
ord
;
/* Validate the new FMC device */
...
...
tools/fmc-fdelay-pulse.c
View file @
c2ea6531
...
...
@@ -7,6 +7,7 @@
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <inttypes.h>
#include "fdelay-lib.h"
...
...
@@ -112,8 +113,8 @@ static void parse_time(char *s, struct fdelay_time *t)
t
->
utc
+=
extra_seconds
;
if
(
0
)
printf
(
"dbg: raw %
lld, %lld, converted: %lld s %d ns %d
ps
\n
"
,
extra_seconds
,
time_ps
,
t
->
utc
,
t
->
coarse
*
8
,
printf
(
"dbg: raw %
"
PRId64
", %"
PRId64
", converted: %"
PRIu64
" s %"
PRId32
" ns %"
PRId32
"
ps
\n
"
,
extra_seconds
,
time_ps
,
t
->
utc
,
t
->
coarse
*
8
,
t
->
frac
*
8000
/
4096
);
}
...
...
@@ -145,7 +146,7 @@ static struct fdelay_time ts_add(struct fdelay_time a, struct fdelay_time b)
void
parse_default
(
struct
fdelay_pulse
*
p
)
{
memset
(
p
,
0
,
sizeof
(
*
p
));
memset
(
&
t_width
,
0
,
sizeof
(
&
t_width
));
memset
(
&
t_width
,
0
,
sizeof
(
struct
fdelay_time
));
p
->
mode
=
FD_OUT_MODE_PULSE
;
p
->
rep
=
-
1
;
/* 1 pulse */
...
...
@@ -201,7 +202,7 @@ void parse_period(struct fdelay_pulse *p, char *s)
void
parse_width
(
struct
fdelay_pulse
*
p
,
char
*
s
)
{
memset
(
&
t_width
,
0
,
sizeof
(
&
t_width
));
memset
(
&
t_width
,
0
,
sizeof
(
struct
fdelay_time
));
parse_time
(
s
,
&
t_width
);
}
...
...
@@ -397,7 +398,6 @@ int main(int argc, char **argv)
trigger_wait
=
!
i
;
}
fdelay_close
(
b
);
fdelay_exit
();
return
0
;
...
...
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