cvs commit: ALFS/nALFS/src nalfs.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Wed Nov 5 06:25:37 PST 2003


kpfleming    03/11/05 07:25:37

  Modified:    nALFS/src nalfs.c
  Log:
  make console variable initialization more explicit
  
  Revision  Changes    Path
  1.36      +2 -3      ALFS/nALFS/src/nalfs.c
  
  Index: nalfs.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/nalfs.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- nalfs.c	5 Nov 2003 06:05:36 -0000	1.35
  +++ nalfs.c	5 Nov 2003 14:25:37 -0000	1.36
  @@ -4585,7 +4585,7 @@
   {
   	char *file = alloc_real_status_logfile_name();
   	FILE *fp = NULL;
  -	FILE *console = stdout;
  +	FILE *console;
   	va_list ap;
           va_list ap2;
   
  @@ -4599,8 +4599,7 @@
   	va_start(ap, format);
           __va_copy(ap2, ap);
   
  -	if (mid == T_ERR)
  -		console = stderr;
  +	console = (mid == T_ERR) ? stderr : stdout;
   
   	if (mid != T_RAW) {
   		fprintf(console, "\n%c: ", msg_character(mid));
  
  
  



More information about the alfs-log mailing list