Commit 29967449 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: wrong error in library

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent eb1ffaaa
...@@ -52,7 +52,7 @@ static int __fdelay_get_ch_fd(struct __fdelay_board *b, ...@@ -52,7 +52,7 @@ static int __fdelay_get_ch_fd(struct __fdelay_board *b,
char fname[128]; char fname[128];
if (channel < 0 || channel > 3) { if (channel < 0 || channel > 3) {
errno = -EINVAL; errno = EINVAL;
return -1; return -1;
} }
if (b->fdc[ch14] <= 0) { if (b->fdc[ch14] <= 0) {
...@@ -72,7 +72,7 @@ static int __fdelay_get_ch_fd(struct __fdelay_board *b, ...@@ -72,7 +72,7 @@ static int __fdelay_get_ch_fd(struct __fdelay_board *b,
return 0; return 0;
} }
extern int fdelay_config_pulse(struct fdelay_board *userb, int fdelay_config_pulse(struct fdelay_board *userb,
int channel, struct fdelay_pulse *pulse) int channel, struct fdelay_pulse *pulse)
{ {
__define_board(b, userb); __define_board(b, userb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment