Improved alignment of ./configure --help texts
and avoided compiler warnings about unused variables with --disable-libacl
This commit is contained in:
parent
9c2bf0197b
commit
4b5a5658a6
@ -131,13 +131,19 @@ int aaip_get_acl_text(char *path, char **text, int flag)
|
|||||||
int aaip_get_attr_list(char *path, size_t *num_attrs, char ***names,
|
int aaip_get_attr_list(char *path, size_t *num_attrs, char ***names,
|
||||||
size_t **value_lengths, char ***values, int flag)
|
size_t **value_lengths, char ***values, int flag)
|
||||||
{
|
{
|
||||||
int ret, retry= 0;
|
int ret;
|
||||||
char *list= NULL;
|
char *list= NULL;
|
||||||
ssize_t list_size= 0, i, num_names= 0, value_ret;
|
ssize_t list_size= 0, i, num_names= 0;
|
||||||
size_t acl_len= 0;
|
|
||||||
unsigned char *acl= NULL;
|
unsigned char *acl= NULL;
|
||||||
char *a_acl_text= NULL, *d_acl_text= NULL;
|
char *a_acl_text= NULL, *d_acl_text= NULL;
|
||||||
|
|
||||||
|
#ifdef Libisofs_with_aaip_acL
|
||||||
|
size_t acl_len= 0;
|
||||||
|
#endif
|
||||||
|
#ifdef Libisofs_with_aaip_xattR
|
||||||
|
ssize_t value_ret, retry= 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(flag & (1 << 15)) { /* Free memory */
|
if(flag & (1 << 15)) { /* Free memory */
|
||||||
{ret= 1; goto ex;}
|
{ret= 1; goto ex;}
|
||||||
}
|
}
|
||||||
@ -375,8 +381,11 @@ int aaip_set_attr_list(char *path, size_t num_attrs, char **names,
|
|||||||
size_t *value_lengths, char **values, int flag)
|
size_t *value_lengths, char **values, int flag)
|
||||||
{
|
{
|
||||||
int ret, has_default_acl= 0;
|
int ret, has_default_acl= 0;
|
||||||
size_t i, consumed, acl_text_fill, list_size= 0, acl_idx= 0, h_consumed;
|
size_t i, consumed, acl_text_fill, acl_idx= 0, h_consumed;
|
||||||
char *acl_text= NULL, *list= NULL;
|
char *acl_text= NULL, *list= NULL;
|
||||||
|
#ifdef Libisofs_with_aaip_xattR
|
||||||
|
size_t list_size= 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Libisofs_with_aaip_xattR
|
#ifdef Libisofs_with_aaip_xattR
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ typedef struct
|
|||||||
|
|
||||||
} GzipFilterRuntime;
|
} GzipFilterRuntime;
|
||||||
|
|
||||||
|
#ifdef Libisofs_with_zliB
|
||||||
|
|
||||||
static
|
static
|
||||||
int gzip_running_destroy(GzipFilterRuntime **running, int flag)
|
int gzip_running_destroy(GzipFilterRuntime **running, int flag)
|
||||||
@ -96,9 +97,7 @@ int gzip_running_new(GzipFilterRuntime **running, int flag)
|
|||||||
if (o == NULL) {
|
if (o == NULL) {
|
||||||
return ISO_OUT_OF_MEM;
|
return ISO_OUT_OF_MEM;
|
||||||
}
|
}
|
||||||
#ifdef Libisofs_with_zliB
|
|
||||||
memset(&(o->strm), 0, sizeof(o->strm));
|
memset(&(o->strm), 0, sizeof(o->strm));
|
||||||
#endif
|
|
||||||
o->in_buffer = NULL;
|
o->in_buffer = NULL;
|
||||||
o->out_buffer = NULL;
|
o->out_buffer = NULL;
|
||||||
o->in_buffer_size = 0;
|
o->in_buffer_size = 0;
|
||||||
@ -106,9 +105,7 @@ int gzip_running_new(GzipFilterRuntime **running, int flag)
|
|||||||
o->rpt = NULL;
|
o->rpt = NULL;
|
||||||
o->in_counter = 0;
|
o->in_counter = 0;
|
||||||
o->out_counter = 0;
|
o->out_counter = 0;
|
||||||
#ifdef Libisofs_with_zliB
|
|
||||||
o->do_flush = Z_NO_FLUSH;
|
o->do_flush = Z_NO_FLUSH;
|
||||||
#endif
|
|
||||||
o->error_ret = 1;
|
o->error_ret = 1;
|
||||||
|
|
||||||
o->in_buffer_size= 2048;
|
o->in_buffer_size= 2048;
|
||||||
@ -123,6 +120,7 @@ failed:
|
|||||||
gzip_running_destroy(running, 0);
|
gzip_running_destroy(running, 0);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif /* Libisofs_with_zliB */
|
||||||
|
|
||||||
|
|
||||||
/* ---------------------------- GzipFilterStreamData --------------------- */
|
/* ---------------------------- GzipFilterStreamData --------------------- */
|
||||||
@ -164,12 +162,17 @@ typedef struct
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef Libisofs_with_zliB
|
||||||
|
|
||||||
/* Each individual GzipFilterStreamData needs a unique id number. */
|
/* Each individual GzipFilterStreamData needs a unique id number. */
|
||||||
/* >>> This is very suboptimal:
|
/* >>> This is very suboptimal:
|
||||||
The counter can rollover.
|
The counter can rollover.
|
||||||
*/
|
*/
|
||||||
static ino_t gzip_ino_id = 0;
|
static ino_t gzip_ino_id = 0;
|
||||||
|
|
||||||
|
#endif /* Libisofs_with_zliB */
|
||||||
|
|
||||||
|
|
||||||
static
|
static
|
||||||
int gzip_stream_uncompress(IsoStream *stream, void *buf, size_t desired);
|
int gzip_stream_uncompress(IsoStream *stream, void *buf, size_t desired);
|
||||||
|
|
||||||
@ -571,13 +574,14 @@ int gzip_cmp_ino(IsoStream *s1, IsoStream *s2)
|
|||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef Libisofs_with_zliB
|
||||||
|
|
||||||
static
|
static
|
||||||
void gzip_filter_free(FilterContext *filter)
|
void gzip_filter_free(FilterContext *filter)
|
||||||
{
|
{
|
||||||
/* no data are allocated */;
|
/* no data are allocated */;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param flag bit1= Install a decompression filter
|
* @param flag bit1= Install a decompression filter
|
||||||
*/
|
*/
|
||||||
@ -626,7 +630,6 @@ int gzip_filter_get_filter(FilterContext *filter, IsoStream *original,
|
|||||||
return ISO_SUCCESS;
|
return ISO_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* To be called by iso_file_add_filter().
|
/* To be called by iso_file_add_filter().
|
||||||
* The FilterContext input parameter is not furtherly needed for the
|
* The FilterContext input parameter is not furtherly needed for the
|
||||||
* emerging IsoStream.
|
* emerging IsoStream.
|
||||||
@ -672,6 +675,7 @@ int gzip_create_context(FilterContext **filter, int flag)
|
|||||||
return ISO_SUCCESS;
|
return ISO_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* Libisofs_with_zliB */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @param flag bit0= if_block_reduction rather than if_reduction
|
* @param flag bit0= if_block_reduction rather than if_reduction
|
||||||
|
Loading…
Reference in New Issue
Block a user