@@ -741,8 +741,8 @@ static int write_user_context(genhomedircon_settings_t * s, FILE * out,
static int seuser_sort_func(const void *arg1, const void *arg2)
{
- const semanage_seuser_t **u1 = (const semanage_seuser_t **) arg1;
- const semanage_seuser_t **u2 = (const semanage_seuser_t **) arg2;
+ const semanage_seuser_t *const *u1 = (const semanage_seuser_t *const *) arg1;
+ const semanage_seuser_t *const *u2 = (const semanage_seuser_t *const *) arg2;
const char *name1 = semanage_seuser_get_name(*u1);
const char *name2 = semanage_seuser_get_name(*u2);
@@ -1058,8 +1058,8 @@ cleanup:
/* qsort comparison function for semanage_get_active_modules. */
static int semanage_get_active_modules_cmp(const void *a, const void *b)
{
- semanage_module_info_t *aa = (semanage_module_info_t *)a;
- semanage_module_info_t *bb = (semanage_module_info_t *)b;
+ const semanage_module_info_t *aa = (const semanage_module_info_t *)a;
+ const semanage_module_info_t *bb = (const semanage_module_info_t *)b;
return strcmp(aa->name, bb->name);
}
@@ -194,9 +194,9 @@ void
{
if( Context->curlen == 0 && BufferSize >= BLOCK_SIZE )
{
- TransformFunction( Context, (uint8_t*)Buffer );
+ TransformFunction( Context, (const uint8_t*)Buffer );
Context->length += BLOCK_SIZE * 8;
- Buffer = (uint8_t*)Buffer + BLOCK_SIZE;
+ Buffer = (const uint8_t*)Buffer + BLOCK_SIZE;
BufferSize -= BLOCK_SIZE;
}
else
@@ -204,7 +204,7 @@ void
n = MIN( BufferSize, (BLOCK_SIZE - Context->curlen) );
memcpy( Context->buf + Context->curlen, Buffer, (size_t)n );
Context->curlen += n;
- Buffer = (uint8_t*)Buffer + n;
+ Buffer = (const uint8_t*)Buffer + n;
BufferSize -= n;
if( Context->curlen == BLOCK_SIZE )
{