cvs commit: ALFS/nALFS/src init.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Thu Nov 6 10:30:29 PST 2003


kpfleming    03/11/06 11:30:29

  Modified:    nALFS/src init.c
  Log:
  convert remaining functions in init.c to use Nprint_err (other than those used by init_needed_directories)
  
  Revision  Changes    Path
  1.12      +3 -3      ALFS/nALFS/src/init.c
  
  Index: init.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/init.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- init.c	6 Nov 2003 18:18:11 -0000	1.11
  +++ init.c	6 Nov 2003 18:30:29 -0000	1.12
  @@ -148,7 +148,7 @@
   
   		} else if (ch == '\\') {
   			if (!quote) {
  -				fprintf(stderr,
  +				Nprint_warn(
   					"Escape character outside of quotes? "
   					"What for?\n");
   				return -1;
  @@ -164,7 +164,7 @@
   	buffer[pos] = '\0';
   
   	if (pos == 0) {
  -		fprintf(stderr, "Empty token.\n");
  +		Nprint_warn("Empty token.\n");
   		return -1;
   	}
   
  @@ -506,7 +506,7 @@
   
   	/* Check for specified profiles. */
   	if (optind >= *argc) {
  -		fprintf(stderr, "No profiles specified.\n");
  +		Nprint_err("No profiles specified.\n");
   		print_usage_and_exit();
   	}
   }
  
  
  



More information about the alfs-log mailing list