X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=531c776a3249e6d555c6570746c1e6036e125f7d;hp=48c34031a75f5e1d93401f419858bb3746e481ad;hb=3c5c2ebfc2d651f2f77d0df89cbb58a2068bcad0;hpb=76c643313daf7a27a966d1f07be765a490c47153 diff --git a/command.c b/command.c index 48c34031..531c776a 100644 --- a/command.c +++ b/command.c @@ -44,7 +44,6 @@ extern const char *status_item_list[NUM_STAT_ITEMS]; extern struct misc_meta_data *mmd; extern struct gengetopt_args_info conf; extern struct audio_file_selector selectors[]; -extern struct audio_format afl[]; extern struct sender senders[]; extern char *user_list; struct sockaddr_in *in_addr; @@ -433,9 +432,12 @@ static char *get_status(struct misc_meta_data *nmmd) nmmd->audio_file_info, status_item_list[SI_UPTIME], ut, - status_item_list[SI_STREAM_START], nmmd->stream_start.tv_sec, - nmmd->stream_start.tv_usec, - status_item_list[SI_CURRENT_TIME], now.tv_sec, now.tv_usec + status_item_list[SI_STREAM_START], + (long unsigned)nmmd->stream_start.tv_sec, + (long unsigned)nmmd->stream_start.tv_usec, + status_item_list[SI_CURRENT_TIME], + (long unsigned)now.tv_sec, + (long unsigned)now.tv_usec ); free(bar); @@ -589,7 +591,7 @@ static int com_si(int fd, int argc, __a_unused char **argv) mmd->num_connects, conf.loglevel_arg, selector_string, - SUPPORTED_AUDIO_FORMATS, + supported_audio_formats(), sender_list, sender_info ); @@ -1172,7 +1174,7 @@ int handle_connect(int fd, struct sockaddr_in *addr) if (use_rc4) { crypt_function_recv = rc4_recv; crypt_function_send = rc4_send; - PARA_INFO_LOG("%s", "rc4 encrytion activated\n"); + PARA_INFO_LOG("%s", "rc4 encryption activated\n"); } /* read command */ while ((numbytes = recv_buffer(fd, buf, sizeof(buf))) > 0) {