PERFORCE change 108754 for review
Robert Watson
rwatson at FreeBSD.org
Mon Oct 30 15:22:28 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=108754
Change 108754 by rwatson at rwatson_zoo on 2006/10/30 15:21:55
Update for enum priv->int.
Affected files ...
.. //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_priv_names.c#3 edit
.. //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_privs.c#3 edit
.. //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_privs.h#2 edit
Differences ...
==== //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_priv_names.c#3 (text+ko) ====
@@ -48,7 +48,7 @@
#include "mac_privs.h"
struct priv_desc {
- enum priv priv;
+ int priv;
const char *name;
};
@@ -283,7 +283,7 @@
static const int priv_count = sizeof(privs) / sizeof(struct priv_desc);
int
-priv_to_name(enum priv priv, const char **namep)
+priv_to_name(int priv, const char **namep)
{
int i;
@@ -298,7 +298,7 @@
}
int
-name_to_priv(const char *name, enum priv *privp)
+name_to_priv(const char *name, int *privp)
{
int i;
==== //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_privs.c#3 (text+ko) ====
@@ -60,7 +60,7 @@
}
static void
-mac_privs_add(uid_t uid, enum priv priv)
+mac_privs_add(uid_t uid, int priv)
{
struct mac_privs_add_args args;
@@ -72,7 +72,7 @@
}
static void
-mac_privs_delete(uid_t uid, enum priv priv)
+mac_privs_delete(uid_t uid, int priv)
{
struct mac_privs_delete_args args;
@@ -139,9 +139,9 @@
int
main(int argc, char *argv[])
{
- enum priv priv;
char *dummy;
uid_t uid;
+ int priv;
long l;
if (argc < 2)
==== //depot/projects/trustedbsd/priv/usr.sbin/mac_privs/mac_privs.h#2 (text+ko) ====
@@ -33,7 +33,7 @@
#define _MAC_PRIVS_H_
void list_privs(void);
-int name_to_priv(const char *name, enum priv *privp);
-int priv_to_name(enum priv priv, const char **namep);
+int name_to_priv(const char *name, int *privp);
+int priv_to_name(int priv, const char **namep);
#endif
More information about the trustedbsd-cvs
mailing list