From 1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 00:57:38 +0200 Subject: Nuke trailing whitespace. Signed-off-by: Ralf Baechle --- hdlcutil/fl/xfhdlcchpar_main.cxx | 4 ++-- hdlcutil/fl/xfhdlcst_main.cxx | 8 ++++---- hdlcutil/fl/xfsmdiag_main.cxx | 18 +++++++++--------- hdlcutil/fl/xfsmmixer_main.cxx | 20 ++++++++++---------- 4 files changed, 25 insertions(+), 25 deletions(-) (limited to 'hdlcutil/fl') diff --git a/hdlcutil/fl/xfhdlcchpar_main.cxx b/hdlcutil/fl/xfhdlcchpar_main.cxx index 8ebee3d..7078d36 100644 --- a/hdlcutil/fl/xfhdlcchpar_main.cxx +++ b/hdlcutil/fl/xfhdlcchpar_main.cxx @@ -58,7 +58,7 @@ void cb_update(Fl_Widget *widget, void *udata) cp.ppersist = (int)(ppersist->value()); cp.fulldup = !!fulldup->value(); ret = hdrvc_set_channel_access_param(cp); - if (ret < 0) + if (ret < 0) perror("hdrvc_set_channel_access_param"); } @@ -71,7 +71,7 @@ void cb_quit(Fl_Button *, long) /* ---------------------------------------------------------------------- */ -static const char *usage_str = +static const char *usage_str = "[-i smif]\n" " -i: specify the name of the baycom kernel driver interface\n\n"; diff --git a/hdlcutil/fl/xfhdlcst_main.cxx b/hdlcutil/fl/xfhdlcst_main.cxx index a17e546..4542fe1 100644 --- a/hdlcutil/fl/xfhdlcst_main.cxx +++ b/hdlcutil/fl/xfhdlcst_main.cxx @@ -62,7 +62,7 @@ void cb_timer(void *) /* ---------------------------------------------------------------------- */ -static const char *usage_str = +static const char *usage_str = "[-i smif]\n" " -i: specify the name of the baycom kernel driver interface\n\n"; @@ -112,13 +112,13 @@ int main(int argc, char *argv[]) if (ret < 0) { perror("hdrvc_get_mode_name"); modename->hide(); - } else + } else modename->value(name); ret = hdrvc_get_driver_name(name, sizeof(name)); if (ret < 0) { perror("hdrvc_get_driver_name"); drivername->hide(); - } else + } else drivername->value(name); /* * check for soundmodem driver @@ -171,7 +171,7 @@ int main(int argc, char *argv[]) demodcyc->value(buf); sprintf(buf, "%d", smi.data.dbg.dma_residue); dmares->value(buf); - } + } } exit (0); } diff --git a/hdlcutil/fl/xfsmdiag_main.cxx b/hdlcutil/fl/xfsmdiag_main.cxx index 695d98f..1fd0dd8 100644 --- a/hdlcutil/fl/xfsmdiag_main.cxx +++ b/hdlcutil/fl/xfsmdiag_main.cxx @@ -58,7 +58,7 @@ static unsigned int drawflags = 0; /* ---------------------------------------------------------------------- */ scope::scope(int x, int y, int w, int h, const char *l) - : Fl_Box(x, y, w, h, l) + : Fl_Box(x, y, w, h, l) { box(FL_DOWN_FRAME); X = x+3; @@ -205,8 +205,8 @@ void scope::drawdata(short data[], int len, int xm) XGCValues gcv; mode(); - if (!pixmalloc || (drawmode != HDRVC_DIAGMODE_CONSTELLATION && - drawmode != HDRVC_DIAGMODE_INPUT && + if (!pixmalloc || (drawmode != HDRVC_DIAGMODE_CONSTELLATION && + drawmode != HDRVC_DIAGMODE_INPUT && drawmode != HDRVC_DIAGMODE_DEMOD)) return; gcv.line_width = 1; @@ -268,7 +268,7 @@ void cb_mode(Fl_Check_Button *, long which) case 256: drawflags ^= HDRVC_DIAGFLAG_DCDGATE; break; - + case 0: scdisp->mode(HDRVC_DIAGMODE_OFF); drawflags = 0; @@ -298,7 +298,7 @@ void cb_quit(Fl_Button *, long) { struct sm_diag_data diag; short data; - + diag.mode = HDRVC_DIAGMODE_OFF; diag.flags = 0; diag.datalen = 1; @@ -330,7 +330,7 @@ void cb_timer(void *) /* * draw scope */ - if ((ret = hdrvc_diag2(scdisp->mode(), drawflags, data, sizeof(data) / sizeof(short), + if ((ret = hdrvc_diag2(scdisp->mode(), drawflags, data, sizeof(data) / sizeof(short), &samplesperbit)) < 0) { perror("hdrvc_diag2"); exit(1); @@ -341,7 +341,7 @@ void cb_timer(void *) /* ---------------------------------------------------------------------- */ -static const char *usage_str = +static const char *usage_str = "[-i smif]\n" " -i: specify the name of the baycom kernel driver interface\n\n"; @@ -396,13 +396,13 @@ int main(int argc, char *argv[]) if (ret < 0) { perror("hdrvc_get_mode_name"); modename->hide(); - } else + } else modename->value(name); ret = hdrvc_get_driver_name(name, sizeof(name)); if (ret < 0) { perror("hdrvc_get_driver_name"); drivername->hide(); - } else + } else drivername->value(name); Fl::add_timeout(0.1, cb_timer); scopewindow->show(); diff --git a/hdlcutil/fl/xfsmmixer_main.cxx b/hdlcutil/fl/xfsmmixer_main.cxx index 5569e7c..83774a0 100644 --- a/hdlcutil/fl/xfsmmixer_main.cxx +++ b/hdlcutil/fl/xfsmmixer_main.cxx @@ -52,7 +52,7 @@ static int do_mix_ioctl(int cmd, struct sm_mixer_data *mixdat) { struct sm_ioctl par; int i; - + par.cmd = cmd; par.data.mix = *mixdat; i = hdrvc_sm_ioctl(cmd, &par); @@ -120,7 +120,7 @@ void update_ad1848(Fl_Widget *widget, void *udata) mdata |= 0x20; } mval *= 0.666666; - if (mval > 15) + if (mval > 15) mval = 15; mdata |= (int)mval; set_mixer_reg(0x00, mdata); @@ -139,7 +139,7 @@ void update_ad1848(Fl_Widget *widget, void *udata) mdata |= 0x20; } mval *= 0.666666; - if (mval > 15) + if (mval > 15) mval = 15; mdata |= (int)mval; set_mixer_reg(0x01, mdata); @@ -150,12 +150,12 @@ void update_ad1848(Fl_Widget *widget, void *udata) mval = ad1848_outl->value(); if (mval < -95) set_mixer_reg(0x06, 0x80); - else + else set_mixer_reg(0x06, (unsigned char)(mval * (-0.66666666))); mval = ad1848_outr->value(); if (mval < -95) set_mixer_reg(0x07, 0x80); - else + else set_mixer_reg(0x07, (unsigned char)(mval * (-0.66666666))); set_mixer_reg(0x0d, 0x00); } @@ -272,7 +272,7 @@ void update_ct1745(Fl_Widget *widget, void *udata) if (ct1745_srcl_midil->value()) mdata |= 0x40; if (ct1745_srcl_midir->value()) - mdata |= 0x20; + mdata |= 0x20; set_mixer_reg(0x3d, mdata); /* input sources left */ mdata = 0; if (ct1745_srcr_mic->value()) @@ -288,7 +288,7 @@ void update_ct1745(Fl_Widget *widget, void *udata) if (ct1745_srcr_midil->value()) mdata |= 0x40; if (ct1745_srcr_midir->value()) - mdata |= 0x20; + mdata |= 0x20; set_mixer_reg(0x3e, mdata); /* input sources right*/ } @@ -301,7 +301,7 @@ void cb_quit(Fl_Button *, long) /* ---------------------------------------------------------------------- */ -static const char *usage_str = +static const char *usage_str = "[-i smif]\n" " -i: specify the name of the soundmodem kernel driver interface\n\n"; @@ -312,7 +312,7 @@ int main(int argc, char *argv[]) int c, i; struct sm_mixer_data mixdat; unsigned char mdata; - + progname = *argv; printf("%s: Version 0.3; (C) 1996,1997,2000 by Thomas Sailer HB9JNX/AE4WA\n", progname); hdrvc_args(&argc, argv, "sm0"); @@ -352,7 +352,7 @@ int main(int argc, char *argv[]) case SM_MIXER_AD1848: case SM_MIXER_CRYSTAL: - printf("Mixer device: %s\n", mixdevice == SM_MIXER_CRYSTAL ? + printf("Mixer device: %s\n", mixdevice == SM_MIXER_CRYSTAL ? "CS423x" : "AD1848"); create_form_ad1848(); mdata = get_mixer_reg(0); -- cgit v1.2.3