*** [.news_v58_update]nntp_tcpcmu.c --- [.news_src]nntp_tcpcmu.c ************** *** 93,101 main() { #if DEBUG - int cur_time; - - time(&cur_time); flog = fopen(LOGFILE,"a+"); fprintf(flog,"TCP CMU open NNTP Connection %s",ctime(cur_time)); fclose(flog); --- 93,98 ----- main() { #if DEBUG flog = fopen(LOGFILE,"a+"); fprintf(flog,"TCP CMU open NNTP Connection\n"); fclose(flog); ************** *** 97,103 time(&cur_time); flog = fopen(LOGFILE,"a+"); ! fprintf(flog,"TCP CMU open NNTP Connection %s",ctime(cur_time)); fclose(flog); #endif --- 94,100 ----- { #if DEBUG flog = fopen(LOGFILE,"a+"); ! fprintf(flog,"TCP CMU open NNTP Connection\n"); fclose(flog); #endif ************** *** 260,279 * Return the remote host name */ - struct ib { - unsigned char fhost_len; - unsigned char lhost_len; - char fhost[128]; - short fill; - unsigned short fport; - short fill_1; - char lhost[128]; - unsigned short lport; - short fill_2; - unsigned int linet_addr; - unsigned int finet_addr; - } info_buffer; - getremhost(remhost,remuser,unit) char *remhost, *remuser; int unit; --- 257,262 ----- * Return the remote host name */ getremhost(remhost,remuser,unit) char *remhost, *remuser; int unit; ************** *** 278,288 char *remhost, *remuser; int unit; { ! if (remhost) { ! cks(sys$qiow(0,f,IO$_MODIFY,iosb,0,0,&info_buffer,276,0,0,0,0)); ! cks(*i_o_sts); ! strncpy(remhost,info_buffer.fhost,info_buffer.fhost_len); ! remhost[info_buffer.fhost_len] = '\0'; ! } ! if (remuser) strcpy(remuser,"nntp"); } --- 261,266 ----- char *remhost, *remuser; int unit; { ! if (remhost) strcpy(remhost,"tcp"); ! if (remuser) strcpy(remuser,"nntp"); }