diff options
author | joerg <joerg@pkgsrc.org> | 2012-10-24 15:37:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-10-24 15:37:58 +0000 |
commit | b05281ef64c92469348a8fe509d57eb4e814795c (patch) | |
tree | 7a9102f71dec0373fd562f60d55d63aeb3a20f9d /ham/yaesu/patches/patch-wwv__find.c | |
parent | 5745857b98cf6ccdea883d510e79121447310e2b (diff) | |
download | pkgsrc-b05281ef64c92469348a8fe509d57eb4e814795c.tar.gz |
Fix missing system header, inconsistent function definitions, return; in
non-void functions. Bump revision.
Diffstat (limited to 'ham/yaesu/patches/patch-wwv__find.c')
-rw-r--r-- | ham/yaesu/patches/patch-wwv__find.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ham/yaesu/patches/patch-wwv__find.c b/ham/yaesu/patches/patch-wwv__find.c new file mode 100644 index 00000000000..755fa5255f7 --- /dev/null +++ b/ham/yaesu/patches/patch-wwv__find.c @@ -0,0 +1,27 @@ +$NetBSD: patch-wwv__find.c,v 1.1 2012/10/24 15:38:07 joerg Exp $ + +--- wwv_find.c.orig 2012-10-21 10:06:08.000000000 +0000 ++++ wwv_find.c +@@ -1,10 +1,8 @@ +-extern main(); +-extern float freq_to_change_to; +-extern flag_data_return[]; ++#include "yaesu.h" + +-wwv_find(int fdSer) { ++void wwv_find(int fdSer) { + float new; +- int find, meter[5], tx_mode; ++ int find, meter[6], tx_mode; + + rd_flags(fdSer); + tx_mode = flag_data_return[3]; +@@ -16,7 +14,7 @@ wwv_find(int fdSer) { + + + freq_to_change_to = 2.5; +- freq_out(fdSer, freq_to_change_to); ++ freq_out(fdSer); + sleep(1); + meter[1] = meter_rd(fdSer); + find = meter[1]; |