* [SEMANAGE] Fix more size_t warnings
@ 2006-01-28 18:23 Ivan Gyurdiev
2006-01-30 20:16 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Gyurdiev @ 2006-01-28 18:23 UTC (permalink / raw)
To: selinux; +Cc: Stephen Smalley
[-- Attachment #1: Type: text/plain, Size: 56 bytes --]
Fix size_t warnings which show up on a 64-bit machine.
[-- Attachment #2: libsemanage.fix_more_size_t.diff --]
[-- Type: text/x-patch, Size: 2287 bytes --]
diff -Naurp --exclude-from excludes old/libsemanage/src/policy_components.c new/libsemanage/src/policy_components.c
--- old/libsemanage/src/policy_components.c 2006-01-27 13:44:09.000000000 -0700
+++ new/libsemanage/src/policy_components.c 2006-01-28 11:19:46.000000000 -0700
@@ -17,8 +17,7 @@ static int clear_obsolete(
record_key_t* key = NULL;
record_t** records = NULL;
- size_t nrecords = 0;
- size_t i;
+ unsigned int i, nrecords = 0;
dbase_table_t* src_dtable = src->dtable;
dbase_table_t* dst_dtable = dst->dtable;
diff -Naurp --exclude-from excludes old/libsemanage/src/user_base_record.c new/libsemanage/src/user_base_record.c
--- old/libsemanage/src/user_base_record.c 2006-01-13 06:37:34.000000000 -0700
+++ new/libsemanage/src/user_base_record.c 2006-01-28 11:18:05.000000000 -0700
@@ -19,7 +19,6 @@ typedef semanage_user_key_t record_key_t
#define DBASE_RECORD_DEFINED
#include <stdlib.h>
-#include <stddef.h>
#include "user_internal.h"
#include "handle.h"
#include "database.h"
@@ -132,7 +131,7 @@ hidden int semanage_user_base_get_roles(
semanage_handle_t* handle,
const semanage_user_base_t* user,
const char*** roles_arr,
- size_t* num_roles) {
+ unsigned int* num_roles) {
return sepol_user_get_roles(handle->sepolh, user, roles_arr, num_roles);
}
@@ -141,7 +140,7 @@ hidden int semanage_user_base_set_roles(
semanage_handle_t* handle,
semanage_user_base_t* user,
const char** roles_arr,
- size_t num_roles) {
+ unsigned int num_roles) {
return sepol_user_set_roles(handle->sepolh, user, roles_arr, num_roles);
}
diff -Naurp --exclude-from excludes old/libsemanage/src/user_internal.h new/libsemanage/src/user_internal.h
--- old/libsemanage/src/user_internal.h 2006-01-28 11:03:16.000000000 -0700
+++ new/libsemanage/src/user_internal.h 2006-01-28 11:16:53.000000000 -0700
@@ -141,13 +141,13 @@ hidden int semanage_user_base_get_roles(
semanage_handle_t* handle,
const semanage_user_base_t* user,
const char*** roles_arr,
- size_t* num_roles);
+ unsigned int* num_roles);
hidden int semanage_user_base_set_roles(
semanage_handle_t* handle,
semanage_user_base_t* user,
const char** roles_arr,
- size_t num_roles);
+ unsigned int num_roles);
hidden void semanage_user_base_free(
semanage_user_base_t* user);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [SEMANAGE] Fix more size_t warnings
2006-01-28 18:23 [SEMANAGE] Fix more size_t warnings Ivan Gyurdiev
@ 2006-01-30 20:16 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2006-01-30 20:16 UTC (permalink / raw)
To: Ivan Gyurdiev; +Cc: selinux
On Sat, 2006-01-28 at 11:23 -0700, Ivan Gyurdiev wrote:
> Fix size_t warnings which show up on a 64-bit machine.
Merged as of libsemanage 1.5.19.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-30 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-28 18:23 [SEMANAGE] Fix more size_t warnings Ivan Gyurdiev
2006-01-30 20:16 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.