Skip to content

Commit

Permalink
minor: Fix rtltcp disabled prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Oct 10, 2023
1 parent 8271d38 commit e826a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/devices/secplus_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int secplus_v1_callback(r_device *decoder, bitbuffer_t *bitbuffer)
gettimeofday(&cur_tv, NULL);
timeval_subtract(&res_tv, &cur_tv, &cached_tv);

decoder_logf(decoder, 2, __func__, "res %12ld %8ld", res_tv.tv_sec, (long)res_tv.tv_usec);
decoder_logf(decoder, 2, __func__, "res %12ld %8ld", (long)res_tv.tv_sec, (long)res_tv.tv_usec);

// is the data not expired
if (res_tv.tv_sec == 0 && res_tv.tv_usec < CACHE_MAX_AGE) {
Expand Down
3 changes: 2 additions & 1 deletion src/output_rtltcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,11 @@ struct raw_output *raw_output_rtltcp_create(const char *host, const char *port,

#else

struct raw_output *raw_output_rtltcp_create(const char *host, const char *port, r_cfg_t *cfg)
struct raw_output *raw_output_rtltcp_create(const char *host, const char *port, char const *opts, r_cfg_t *cfg)
{
UNUSED(host);
UNUSED(port);
UNUSED(opts);
UNUSED(cfg);
print_log(LOG_ERROR, "rtl_tcp server", "rtl_tcp output not available in this build!");
return NULL;
Expand Down

0 comments on commit e826a46

Please sign in to comment.