From 43f43914964dcdf0df8531bc74b0efb8c6bf12e8 Mon Sep 17 00:00:00 2001 From: DL1YCF Date: Thu, 30 Dec 2021 12:01:04 +0100 Subject: [PATCH] Header files: explicitly indicate void argument lists in function prototypes (this is a great debugger). --- MacOS.h | 4 ++-- alsa_midi.h | 2 +- audio.h | 8 ++++---- band.h | 16 ++++++++-------- beep.h | 4 ++-- client_server.h | 6 +++--- css.h | 2 +- discovery.h | 2 +- equalizer_menu.h | 2 +- ext.h | 1 - filter.h | 4 ++-- frequency.h | 2 +- gpio.h | 16 ++++++++-------- i2c.h | 4 ++-- iambic.h | 6 +++--- midi.h | 10 +++------- midi_menu.h | 4 ++-- new_menu.h | 32 ++++++++++++++++---------------- new_protocol.h | 24 ++++++++++++------------ noise_menu.h | 4 ++-- old_protocol.h | 4 ++-- ozyio.h | 6 +++--- property.h | 2 +- protocols.h | 4 ++-- radio.h | 35 ++++++++++++++++++----------------- rigctl.h | 12 ++++++------ rigctl_menu.h | 4 ++-- sliders.h | 8 ++++---- soapy_discovery.h | 2 +- soapy_protocol.h | 4 ++-- soundio.h | 6 +++--- store.h | 4 ++-- toolbar.h | 2 +- update.h | 4 ++-- vfo.h | 26 +++++++++++++------------- vox.h | 4 ++-- 36 files changed, 138 insertions(+), 142 deletions(-) diff --git a/MacOS.h b/MacOS.h index c636e93..c3e87b5 100644 --- a/MacOS.h +++ b/MacOS.h @@ -2,8 +2,8 @@ * Some functions are possibly missing on MacOS and in this case * are replaced with "static inline" functions: * - * clock_gettime() - * clock_nanosleep() + * clock_gettime(void) + * clock_nanosleep(void) */ #ifdef __APPLE__ diff --git a/alsa_midi.h b/alsa_midi.h index 2406b11..2d6070c 100644 --- a/alsa_midi.h +++ b/alsa_midi.h @@ -8,4 +8,4 @@ typedef struct _midi_device { extern MIDI_DEVICE midi_devices[MAX_MIDI_DEVICES]; extern int n_midi_devices; -extern void get_midi_devices(); +extern void get_midi_devices(void); diff --git a/audio.h b/audio.h index 4455a14..e1d26c3 100644 --- a/audio.h +++ b/audio.h @@ -38,13 +38,13 @@ extern int n_output_devices; extern AUDIO_DEVICE output_devices[MAX_AUDIO_DEVICES]; extern GMutex audio_mutex; -extern int audio_open_input(); -extern void audio_close_input(); +extern int audio_open_input(void); +extern void audio_close_input(void); extern int audio_open_output(RECEIVER *rx); extern void audio_close_output(RECEIVER *rx); extern int audio_write(RECEIVER *rx,float left_sample,float right_sample); extern int cw_audio_write(RECEIVER *rx,float sample); -extern void audio_get_cards(); +extern void audio_get_cards(void); char * audio_get_error_string(int err); -float audio_get_next_mic_sample(); +float audio_get_next_mic_sample(void); #endif diff --git a/band.h b/band.h index 23a9294..f535512 100644 --- a/band.h +++ b/band.h @@ -103,8 +103,8 @@ extern BANDSTACK_ENTRY bandstack_entries60_OTHER[]; extern BANDSTACK_ENTRY bandstack_entries60_WRC15[]; extern BANDSTACK_ENTRY bandstack_entries60_UK[]; -extern int band_get_current(); -extern BAND *band_get_current_band(); +extern int band_get_current(void); +extern BAND *band_get_current_band(void); extern BAND *band_get_band(int b); extern BAND *band_set_current(int b); extern int get_band_from_frequency(long long f); @@ -112,14 +112,14 @@ extern int get_band_from_frequency(long long f); extern BANDSTACK *bandstack_get_bandstack(int band); extern BANDSTACK_ENTRY *bandstack_get_bandstack_entry(int band,int entry); -extern BANDSTACK_ENTRY *bandstack_entry_next(); -extern BANDSTACK_ENTRY *bandstack_entry_previous(); -extern BANDSTACK_ENTRY *bandstack_entry_get_current(); +extern BANDSTACK_ENTRY *bandstack_entry_next(void); +extern BANDSTACK_ENTRY *bandstack_entry_previous(void); +extern BANDSTACK_ENTRY *bandstack_entry_get_current(void); -extern void bandSaveState(); -extern void bandRestoreState(); +extern void bandSaveState(void); +extern void bandRestoreState(void); char* getFrequencyInfo(long long frequency,int filter_low,int filter_high); -int canTransmit(); +int canTransmit(void); #endif diff --git a/beep.h b/beep.h index 63a3370..f7e5677 100644 --- a/beep.h +++ b/beep.h @@ -5,7 +5,7 @@ extern double beep_freq; void beep_vol(long volume); void beep_mute(int mute); -void beep_init(); -void beep_close(); +void beep_init(void); +void beep_close(void); #endif diff --git a/client_server.h b/client_server.h index f430911..c9ee737 100644 --- a/client_server.h +++ b/client_server.h @@ -471,7 +471,7 @@ extern gboolean hpsdr_server; extern gboolean hpsdr_server; extern gint client_socket; extern gint start_spectrum(void *data); -extern void start_vfo_timer(); +extern void start_vfo_timer(void); extern gboolean remote_started; @@ -479,8 +479,8 @@ extern REMOTE_CLIENT *clients; extern gint listen_port; -extern int create_hpsdr_server(); -extern int destroy_hpsdr_server(); +extern int create_hpsdr_server(void); +extern int destroy_hpsdr_server(void); extern int radio_connect_remote(char *host, int port); diff --git a/css.h b/css.h index 148a8aa..00edea7 100644 --- a/css.h +++ b/css.h @@ -1,3 +1,3 @@ extern char *css; -extern void load_css(); +extern void load_css(void); diff --git a/discovery.h b/discovery.h index 06394db..fb540e1 100644 --- a/discovery.h +++ b/discovery.h @@ -17,5 +17,5 @@ * */ -extern void discovery(); +extern void discovery(void); extern char *ipaddr_tcp; diff --git a/equalizer_menu.h b/equalizer_menu.h index ae9891d..ca56a42 100644 --- a/equalizer_menu.h +++ b/equalizer_menu.h @@ -19,4 +19,4 @@ void equalizer_menu(GtkWidget *parent); -void update_eq(); +void update_eq(void); diff --git a/ext.h b/ext.h index 9e00855..6c42802 100644 --- a/ext.h +++ b/ext.h @@ -82,7 +82,6 @@ extern int ext_agc_update(void *data); extern int ext_split_toggle(void *data); -extern int ext_cw_setup(); extern int ext_cw_key(void *data); extern int ext_update_squelch(void *data); diff --git a/filter.h b/filter.h index 97c2f8b..74d5397 100644 --- a/filter.h +++ b/filter.h @@ -59,8 +59,8 @@ extern FILTER *filters[MODES]; extern gint filter_step; -extern void filterSaveState(); -extern void filterRestoreState(); +extern void filterSaveState(void); +extern void filterRestoreState(void); extern void filter_width_changed(int rx,int increment); extern void filter_shift_changed(int rx,int increment); #endif diff --git a/frequency.h b/frequency.h index 6dcb143..c1a1065 100644 --- a/frequency.h +++ b/frequency.h @@ -42,6 +42,6 @@ struct frequency_info { extern char* getFrequencyInfo(long long frequency,int filter_low,int filter_high); extern int getBand(long long frequency); -extern int canTransmit(); +extern int canTransmit(void); #endif diff --git a/gpio.h b/gpio.h index 6215228..00bf52a 100644 --- a/gpio.h +++ b/gpio.h @@ -73,13 +73,13 @@ extern long settle_time; extern int process_function_switch(void *data); extern void gpio_set_defaults(int ctrlr); -extern void gpio_restore_actions(); -extern void gpio_restore_state(); -extern void gpio_save_state(); -extern void gpio_save_actions(); -extern int gpio_init(); -extern void gpio_close(); -extern unsigned int millis(); // to allow debouncing in i2c.c +extern void gpio_restore_actions(void); +extern void gpio_restore_state(void); +extern void gpio_save_state(void); +extern void gpio_save_actions(void); +extern int gpio_init(void); +extern void gpio_close(void); +extern unsigned int millis(void); // to allow debouncing in i2c.c #ifdef LOCALCW extern int CWL_BUTTON; @@ -89,7 +89,7 @@ extern int ENABLE_GPIO_SIDETONE; extern int ENABLE_CW_BUTTONS; extern int CW_ACTIVE_LOW; extern void gpio_cw_sidetone_set(int level); -extern int gpio_cw_sidetone_enabled(); +extern int gpio_cw_sidetone_enabled(void); #endif #endif diff --git a/i2c.h b/i2c.h index d0eccd4..308a3df 100644 --- a/i2c.h +++ b/i2c.h @@ -3,5 +3,5 @@ extern unsigned int i2c_address_1; extern unsigned int i2c_address_2; extern char *i2c_device; -extern void i2c_init(); -extern void i2c_interrupt(); +extern void i2c_init(void); +extern void i2c_interrupt(void); diff --git a/iambic.h b/iambic.h index 62865ad..613700b 100644 --- a/iambic.h +++ b/iambic.h @@ -16,9 +16,9 @@ enum { }; void keyer_event(int left, int state); -void keyer_update(); -void keyer_close(); -int keyer_init(); +void keyer_update(void); +void keyer_close(void); +int keyer_init(void); #endif #endif diff --git a/midi.h b/midi.h index a689bad..83b0653 100644 --- a/midi.h +++ b/midi.h @@ -102,8 +102,7 @@ extern int midi_debug; // // Layer-1 entry point, called once for all the MIDI devices -// that have been defined. This is called upon startup by -// Layer-2 through the function MIDIstartup. +// that have been defined. // void register_midi_device(int index); void close_midi_device(int index); @@ -115,14 +114,11 @@ void configure_midi_device(gboolean state); // When Layer-1 has received a MIDI message, it calls // NewMidiEvent. // -// MIDIstartup looks for files containing descriptions for MIDI -// devices and calls the Layer-1 function register_midi_device -// for each device description that was successfully read. void NewMidiEvent(enum MIDIevent event, int channel, int note, int val); -int MIDIstartup(char *filename); +int ReadLegacyMidiFile(char *filename); void MidiAddCommand(int note, struct desc *desc); -void MidiReleaseCommands(); +void MidiReleaseCommands(void); // // Layer-3 entry point (called by Layer2). In Layer-3, all the pihpsdr diff --git a/midi_menu.h b/midi_menu.h index 02220e1..5a145c4 100644 --- a/midi_menu.h +++ b/midi_menu.h @@ -19,6 +19,6 @@ extern void midi_menu(GtkWidget *parent); extern void NewMidiConfigureEvent(enum MIDIevent event, int channel, int note, int val); -extern void midi_save_state(); -extern void midi_restore_state(); +extern void midi_save_state(void); +extern void midi_restore_state(void); diff --git a/new_menu.h b/new_menu.h index 398200b..26757c4 100644 --- a/new_menu.h +++ b/new_menu.h @@ -1,29 +1,29 @@ extern GtkWidget *sub_menu; -extern void new_menu(); +extern void new_menu(void); /* extern GtkWidget* new_menu_init(int width,int height,GtkWidget *parent); */ -extern void start_step(); -extern void start_meter(); -extern void start_band(); -extern void start_bandstack(); -extern void start_mode(); -extern void start_filter(); -extern void start_noise(); -extern void start_encoder(); +extern void start_step(void); +extern void start_meter(void); +extern void start_band(void); +extern void start_bandstack(void); +extern void start_mode(void); +extern void start_filter(void); +extern void start_noise(void); +extern void start_encoder(void); extern void start_vfo(int vfo); -extern void start_agc(); -extern void start_store(); -extern void start_rx(); -extern void start_tx(); -extern void start_diversity(); +extern void start_agc(void); +extern void start_store(void); +extern void start_rx(void); +extern void start_tx(void); +extern void start_diversity(void); #ifdef PURESIGNAL -extern void start_ps(); +extern void start_ps(void); #endif #ifdef CLIENT_SERVER -extern void start_server(); +extern void start_server(void); #endif extern void encoder_step(int encoder,int step); diff --git a/new_protocol.h b/new_protocol.h index 2300386..e1578a8 100644 --- a/new_protocol.h +++ b/new_protocol.h @@ -73,27 +73,27 @@ extern int send_high_priority; extern int send_general; */ -extern void schedule_high_priority(); -extern void schedule_general(); -extern void schedule_receive_specific(); -extern void schedule_transmit_specific(); +extern void schedule_high_priority(void); +extern void schedule_general(void); +extern void schedule_receive_specific(void); +extern void schedule_transmit_specific(void); extern void new_protocol_init(int pixels); -extern void new_protocol_stop(); +extern void new_protocol_stop(void); -extern void filter_board_changed(); -extern void pa_changed(); -extern void tuner_changed(); +extern void filter_board_changed(void); +extern void pa_changed(void); +extern void tuner_changed(void); extern void setMox(int state); -extern int getMox(); +extern int getMox(void); extern void setTune(int state); -extern int getTune(); +extern int getTune(void); extern void new_protocol_audio_samples(RECEIVER *rx,short left_audio_sample,short right_audio_sample); extern void new_protocol_iq_samples(int isample,int qsample); -extern void new_protocol_flush_iq_samples(); +extern void new_protocol_flush_iq_samples(void); extern void new_protocol_cw_audio_samples(short l, short r); -extern void new_protocol_restart(); +extern void new_protocol_restart(void); #endif diff --git a/noise_menu.h b/noise_menu.h index a145076..fd59d36 100644 --- a/noise_menu.h +++ b/noise_menu.h @@ -19,5 +19,5 @@ extern void noise_menu(GtkWidget *parent); -extern void update_noise(); -extern void set_noise(); +extern void update_noise(void); +extern void set_noise(void); diff --git a/old_protocol.h b/old_protocol.h index 49f6e7c..92832a0 100644 --- a/old_protocol.h +++ b/old_protocol.h @@ -20,8 +20,8 @@ #ifndef _OLD_PROTOCOL_H #define _OLD_PROTOCOL_H -extern void old_protocol_stop(); -extern void old_protocol_run(); +extern void old_protocol_stop(void); +extern void old_protocol_run(void); extern void old_protocol_init(int rx,int pixels,int rate); extern void old_protocol_set_mic_sample_rate(int rate); diff --git a/ozyio.h b/ozyio.h index b643cfe..3dc8d7d 100644 --- a/ozyio.h +++ b/ozyio.h @@ -49,17 +49,17 @@ extern unsigned short penny_fp, penny_rp, penny_alc; extern int adc_overflow; int ozy_open(void); -int ozy_close(); +int ozy_close(void); int ozy_get_firmware_string(unsigned char* buffer,int buffer_size); int ozy_write(int ep,unsigned char* buffer,int buffer_size); int ozy_read(int ep,unsigned char* buffer,int buffer_size); -void ozy_load_fw(); +void ozy_load_fw(void); int ozy_load_fpga(char *rbf_fnamep); int ozy_set_led(int which, int on); int ozy_reset_cpu(int reset); int ozy_load_firmware(char *fnamep); -int ozy_initialise(); +int ozy_initialise(void); int ozy_discover(void); // returns 1 if a device found on USB void ozy_i2c_readpwr(int addr); // sets local variables diff --git a/property.h b/property.h index ae41979..25fe851 100644 --- a/property.h +++ b/property.h @@ -34,7 +34,7 @@ struct _PROPERTY { PROPERTY* next_property; }; -extern void clearProperties(); +extern void clearProperties(void); extern void loadProperties(char* filename); extern char* getProperty(char* name); extern void setProperty(char* name,char* value); diff --git a/protocols.h b/protocols.h index 424d957..f8ab71d 100644 --- a/protocols.h +++ b/protocols.h @@ -27,6 +27,6 @@ extern gboolean enable_stemlab; #endif extern gboolean autostart; -extern void protocols_save_state(); -extern void protocols_restore_state(); +extern void protocols_save_state(void); +extern void protocols_restore_state(void); extern void configure_protocols(GtkWidget *parent); diff --git a/radio.h b/radio.h index 838dd95..8cb2d54 100644 --- a/radio.h +++ b/radio.h @@ -328,26 +328,27 @@ extern GMutex property_mutex; extern gboolean server; #endif -extern void radio_stop(); -extern void reconfigure_radio(); -extern void start_radio(); -//extern void init_radio(); +extern void radio_stop(void); +extern void reconfigure_radio(void); +extern void start_radio(void); +//extern void init_radio(void); extern void radio_change_receivers(int r); extern void radio_change_sample_rate(int rate); -extern void radio_band_changed(); +extern void set_alex_antennas(void); +extern void tx_vfo_changed(void); extern void radio_set_split(int v); extern void setMox(int state); -extern int getMox(); +extern int getMox(void); extern void setTune(int state); -extern int getTune(); +extern int getTune(void); extern void vox_changed(int state); extern void frequency_changed(RECEIVER *rx); -extern double getDrive(); +extern double getDrive(void); extern void setDrive(double d); -extern void calcDriveLevel(); -extern double getTuneDrive(); +extern void calcDriveLevel(void); +extern double getTuneDrive(void); extern void setTuneDrive(double d); -extern void calcTuneDriveLevel(); +extern void calcTuneDriveLevel(void); extern void setSquelch(RECEIVER *rx); extern void radio_set_rf_gain(RECEIVER *rx); @@ -355,22 +356,22 @@ extern void radio_set_rf_gain(RECEIVER *rx); extern void set_attenuation(int value); extern void set_alex_attenuation(int v); -extern int isTransmitting(); +extern int isTransmitting(void); extern void setFrequency(long long f); -extern long long getFrequency(); +extern long long getFrequency(void); -extern void radioRestoreState(); -extern void radioSaveState(); +extern void radioRestoreState(void); +extern void radioSaveState(void); -extern void calculate_display_average(); +extern void calculate_display_average(RECEIVER *rx); extern void set_filter_type(int filter_type); extern void set_filter_size(int filter_size); extern void radio_change_region(int region); -extern void disable_rigctl(); +extern void disable_rigctl(void); #ifdef CLIENT_SERVER extern int remote_start(void *data); diff --git a/rigctl.h b/rigctl.h index 45a8ad0..495b57a 100644 --- a/rigctl.h +++ b/rigctl.h @@ -1,14 +1,14 @@ #ifndef RIGCTL_H #define RIGCTL_H -void launch_rigctl (); -int launch_serial (); -void disable_sreial (); +void launch_rigctl (void); +int launch_serial (void); +void disable_sreial (void); -void close_rigctl_ports (); -int rigctlGetMode(); +void close_rigctl_ports (void); +int rigctlGetMode(void); int lookup_band(int); -char * rigctlGetFilter(); +char * rigctlGetFilter(void); void set_freqB(long long); extern int cat_control; int set_alc(gpointer); diff --git a/rigctl_menu.h b/rigctl_menu.h index b888709..4e15703 100644 --- a/rigctl_menu.h +++ b/rigctl_menu.h @@ -23,8 +23,8 @@ extern void rigctl_menu(GtkWidget *parent); extern char ser_port[]; -extern void disable_rigctl(); -extern void disable_serial(); +extern void disable_rigctl(void); +extern void disable_serial(void); extern int serial_baud_rate; extern int serial_parity; diff --git a/sliders.h b/sliders.h index 145679e..58fd09f 100644 --- a/sliders.h +++ b/sliders.h @@ -33,7 +33,7 @@ extern void update_att_preamp(void); extern int sliders_active_receiver_changed(void *data); extern void update_agc_gain(double gain); -extern void update_af_gain(); +extern void update_af_gain(void); extern int update_mic_gain(void *); extern int update_drive(void *); extern int update_tune_drive(void *); @@ -49,12 +49,12 @@ extern void set_filter_width(int rx,int width); extern void set_filter_shift(int rx,int width); extern GtkWidget *sliders_init(int my_width, int my_height); -extern void sliders_update(); +extern void sliders_update(void); extern void set_squelch(RECEIVER *rx); extern void set_compression(TRANSMITTER *tx); -extern void show_diversity_gain(); -extern void show_diversity_phase(); +extern void show_diversity_gain(void); +extern void show_diversity_phase(void); #endif diff --git a/soapy_discovery.h b/soapy_discovery.h index 65df402..0959c1d 100644 --- a/soapy_discovery.h +++ b/soapy_discovery.h @@ -20,6 +20,6 @@ #ifndef _SOAPY_DISCOVERY_H #define _SOAPY_DISCOVERY_H -void soapy_discovery(); +void soapy_discovery(void); #endif diff --git a/soapy_protocol.h b/soapy_protocol.h index c5bb4d6..bae37df 100644 --- a/soapy_protocol.h +++ b/soapy_protocol.h @@ -22,13 +22,13 @@ #define BUFFER_SIZE 1024 -SoapySDRDevice *get_soapy_device(); +SoapySDRDevice *get_soapy_device(void); void soapy_protocol_create_receiver(RECEIVER *rx); void soapy_protocol_start_receiver(RECEIVER *rx); void soapy_protocol_init(gboolean hf); -void soapy_protocol_stop(); +void soapy_protocol_stop(void); void soapy_protocol_set_rx_frequency(RECEIVER *rx,int v); void soapy_protocol_set_rx_antenna(RECEIVER *rx,int ant); void soapy_protocol_set_lna_gain(RECEIVER *rx,int gain); diff --git a/soundio.h b/soundio.h index ee4dcfe..a4abcbf 100644 --- a/soundio.h +++ b/soundio.h @@ -30,10 +30,10 @@ extern char *output_devices[]; extern int n_output_devices; //extern int n_selected_output_device; -extern int audio_open_input(); -extern void audio_close_input(); +extern int audio_open_input(void); +extern void audio_close_input(void); extern int audio_open_output(RECEIVER *rx); extern void audio_close_output(RECEIVER *rx); extern int audio_write(RECEIVER *rx,short left_sample,short right_sample); -extern void audio_get_cards(); +extern void audio_get_cards(void); #endif diff --git a/store.h b/store.h index 48b35db..2910e28 100644 --- a/store.h +++ b/store.h @@ -38,8 +38,8 @@ struct _MEM_STORE { typedef struct _MEM_STORE MEM; extern MEM mem[]; -void memRestoreState(); -void memSaveState(); +void memRestoreState(void); +void memSaveState(void); void recall_memory_slot(int index); void store_memory_slot(int index); diff --git a/toolbar.h b/toolbar.h index ea9063a..322e403 100644 --- a/toolbar.h +++ b/toolbar.h @@ -27,7 +27,7 @@ extern int function; extern SWITCH *toolbar_switches; -void update_toolbar_labels(); +void update_toolbar_labels(void); void ptt_update(int state); void mox_update(int state); void tune_update(int state); diff --git a/update.h b/update.h index 444a7ab..cf11601 100644 --- a/update.h +++ b/update.h @@ -1,4 +1,4 @@ extern char new_version[]; -extern int check_update(); -extern int load_update(); +extern int check_update(void); +extern int load_update(void); diff --git a/vfo.h b/vfo.h index 595e269..ae9695e 100644 --- a/vfo.h +++ b/vfo.h @@ -81,7 +81,7 @@ typedef struct _set_frequency { extern char *step_labels[]; extern GtkWidget* vfo_init(int width,int height,GtkWidget *parent); -extern int vfo_get_stepindex(); +extern int vfo_get_stepindex(void); extern void vfo_set_step_from_index(int index); extern void vfo_set_stepsize(int newstep); extern int vfo_get_step_from_index(int index); @@ -90,26 +90,26 @@ extern void vfo_id_step(int id, int steps); extern void vfo_move(long long hz,int round); extern void vfo_id_move(int id,long long hz,int round); extern void vfo_move_to(long long hz); -extern void vfo_update(); +extern void vfo_update(void); -extern void vfo_save_state(); -extern void vfo_restore_state(); -extern void modesettings_save_state(); -extern void modesettings_restore_state(); +extern void vfo_save_state(void); +extern void vfo_restore_state(void); +extern void modesettings_save_state(void); +extern void modesettings_restore_state(void); extern void vfo_band_changed(int id,int b); extern void vfo_bandstack_changed(int b); extern void vfo_mode_changed(int m); extern void vfo_filter_changed(int f); -extern void vfo_a_to_b(); -extern void vfo_b_to_a(); -extern void vfo_a_swap_b(); +extern void vfo_a_to_b(void); +extern void vfo_b_to_a(void); +extern void vfo_a_swap_b(void); -extern int get_tx_vfo(); -extern int get_tx_mode(); -extern long long get_tx_freq(); +extern int get_tx_vfo(void); +extern int get_tx_mode(void); +extern long long get_tx_freq(void); -extern void vfo_xvtr_changed(); +extern void vfo_xvtr_changed(void); extern void vfo_rit_update(int rx); extern void vfo_rit_clear(int rx); diff --git a/vox.h b/vox.h index 34bd48e..3c1a002 100644 --- a/vox.h +++ b/vox.h @@ -18,5 +18,5 @@ */ extern void update_vox(TRANSMITTER *tx); -extern void vox_cancel(); -extern double vox_get_peak(); +extern void vox_cancel(void); +extern double vox_get_peak(void); -- 2.45.2