cvs commit: ALFS/nALFS/src/handlers download.c execute.c permissions.c unpack.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Tue Mar 2 19:56:55 PST 2004


kpfleming    04/03/02 20:56:55

  Modified:    nALFS/src/handlers download.c execute.c permissions.c
                        unpack.c
  Log:
  miscellaneous cleanups to eliminate compiler warnings
  
  Revision  Changes    Path
  1.25      +2 -1      ALFS/nALFS/src/handlers/download.c
  
  Index: download.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/download.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- download.c	2 Mar 2004 04:09:00 -0000	1.24
  +++ download.c	3 Mar 2004 03:56:54 -0000	1.25
  @@ -171,7 +171,8 @@
   	struct download_data *data = (struct download_data *) element->handler_data;
   	int status = -1;
   	struct stat file_stat;
  -	char *digest, *digest_type;
  +	char *digest = NULL;
  +	char *digest_type = NULL;
   
   	if (data->digest) {
   		digest = data->digest->handler->alloc_data(data->digest, HDATA_COMMAND);
  
  
  
  1.27      +1 -1      ALFS/nALFS/src/handlers/execute.c
  
  Index: execute.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/execute.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- execute.c	3 Mar 2004 02:12:30 -0000	1.26
  +++ execute.c	3 Mar 2004 03:56:55 -0000	1.27
  @@ -368,7 +368,7 @@
   		.alloc_data = execute_data,
   		.is_action = 1,
   		.setup = execute_setup,
  -		.free = execute_setup,
  +		.free = execute_free,
   		.parameter = execute_parameter,
   		.valid_data = execute_valid_data_v2,
   	},
  
  
  
  1.21      +1 -1      ALFS/nALFS/src/handlers/permissions.c
  
  Index: permissions.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/permissions.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- permissions.c	2 Mar 2004 06:50:18 -0000	1.20
  +++ permissions.c	3 Mar 2004 03:56:55 -0000	1.21
  @@ -212,7 +212,7 @@
   static int permissions_main(const element_s * const element)
   {
   	struct permissions_data *data = (struct permissions_data *) element->handler_data;
  -	int status;
  +	int status = 0;
   	char *command;
   	char *message;
   	int i;
  
  
  
  1.32      +2 -1      ALFS/nALFS/src/handlers/unpack.c
  
  Index: unpack.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/unpack.c,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- unpack.c	29 Feb 2004 03:30:00 -0000	1.31
  +++ unpack.c	3 Mar 2004 03:56:55 -0000	1.32
  @@ -285,7 +285,8 @@
   	struct unpack_data *data = (struct unpack_data *) element->handler_data;
   	int status = -1;
   	struct stat file_stat;
  -	char *digest, *digest_type;
  +	char *digest = NULL;
  +	char *digest_type = NULL;
   
   	if (data->digest) {
   		digest = data->digest->handler->alloc_data(data->digest, HDATA_COMMAND);
  
  
  



More information about the alfs-log mailing list