diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-10-09 15:26:29 +0300 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-09 11:28:40 -0700 |
commit | 2d5ce2d995d993adf72a62cc121ebc0bd03dedcf (patch) | |
tree | 091aacd23475cb26729551da86afcaf160422ea5 /driver_greis.c | |
parent | cfa1cdf4267ae26a424f8280b201c49959569914 (diff) | |
download | gpsd-2d5ce2d995d993adf72a62cc121ebc0bd03dedcf.tar.gz |
driver_greis: fix build with reconfigure disabled
Unhide the definition of greis_parse_input and greis_event_hook since
they are used unconditionally.
Fixes the following build failure:
driver_greis.c:969:25: error: 'greis_parse_input' undeclared here (not in a function); did you mean 'generic_parse_input'?
.parse_packet = greis_parse_input,
^~~~~~~~~~~~~~~~~
generic_parse_input
driver_greis.c:973:25: error: 'greis_event_hook' undeclared here (not in a function)
.event_hook = greis_event_hook,
^~~~~~~~~~~~~~~~
Cc: Gregory Fong <gregory.fong@virginorbit.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'driver_greis.c')
-rw-r--r-- | driver_greis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_greis.c b/driver_greis.c index 9eb148fc..222bd9da 100644 --- a/driver_greis.c +++ b/driver_greis.c @@ -797,7 +797,6 @@ static ssize_t greis_control_send(struct gps_device_t *session, } #endif /* CONTROLSEND_ENABLE */ -#ifdef RECONFIGURE_ENABLE static void greis_event_hook(struct gps_device_t *session, event_t event) { if (session->context->readonly) @@ -870,6 +869,7 @@ static gps_mask_t greis_parse_input(struct gps_device_t *session) return 0; } +#ifdef RECONFIGURE_ENABLE /** * Set port operating mode, speed, parity, stopbits etc. here. * Note: parity is passed as 'N'/'E'/'O', but you should program |