--- bcpc.c.orig Sat Dec 29 15:03:13 2001 +++ bcpc.c Tue Jan 11 18:49:25 2005 @@ -80,24 +80,23 @@ void print_help(void) { - fprintf(stderr,"bcpc -- a Brutalcopy client half -Brutalcopy (c) 2000 Karel Kulhavy, Clocksoft - -Brutalcopy is a program for transferring rather large files by means of UDP -protocol in order to bypass TCP tendency to screw up on bad lines. Brutalcopy is -based on manual flow control. - -Usage: bcpc -l -p [-h] [-i -] [-s ] [-r ] [-b ] - --l DNS name or IP address (in dot notation) of the server. --p Port must be some high number (>=1024). Default is 1235. --h Prints out help and ends. --i File to dump the received data from. Default is bcp.dat. --s Number of bytes as a data payload in a single packet. --r Number of microsecond after which is SOT retransmitted. --b Bytes of payload per second -"); + fprintf(stderr,"bcpc -- a Brutalcopy client half\n" +"Brutalcopy (c) 2000 Karel Kulhavy, Clocksoft\n" +"\n" +"Brutalcopy is a program for transferring rather large files by means of UDP\n" +"protocol in order to bypass TCP tendency to screw up on bad lines. Brutalcopy is\n" +"based on manual flow control.\n" +"\n" +"Usage: bcpc -l -p [-h] [-i\n" +"] [-s ] [-r ] [-b ]\n" +"-l DNS name or IP address (in dot notation) of the server.\n" +"-p Port must be some high number (>=1024). Default is 1235.\n" +"-h Prints out help and ends.\n" +"-i File to dump the received data from. Default is bcp.dat.\n" +"-s Number of bytes as a data payload in a single packet.\n" +"-r Number of microsecond after which is SOT retransmitted.\n" +"-b Bytes of payload per second\n" +"\n"); } void @@ -289,8 +288,7 @@ if (n>=n_packets) { - fprintf(stderr,"Invalid packet seq# of %u from %lu came! It means data are -corrupted. Quitting immediately.\n",n,n_packets); + fprintf(stderr,"Invalid packet seq# of %u from %lu came! It means data are\ncorrupted. Quitting immediately.\n",n,n_packets); die(); } if ((bitmap[byte]>>bit)&1) return;