svn commit: r283974 - head/lib/libugidfw
Marcelo Araujo
araujo at FreeBSD.org
Thu Jun 4 02:44:38 UTC 2015
Author: araujo (ports committer)
Date: Thu Jun 4 02:44:37 2015
New Revision: 283974
URL: https://svnweb.freebsd.org/changeset/base/283974
Log:
Remove unused variables and silence clang warnings.
Differential Revision: D2686
Reviewed by: rodrigc
Modified:
head/lib/libugidfw/ugidfw.c
Modified: head/lib/libugidfw/ugidfw.c
==============================================================================
--- head/lib/libugidfw/ugidfw.c Thu Jun 4 02:12:23 2015 (r283973)
+++ head/lib/libugidfw/ugidfw.c Thu Jun 4 02:44:37 2015 (r283974)
@@ -64,11 +64,10 @@ bsde_rule_to_string(struct mac_bsdextend
struct statfs *mntbuf;
char *cur, type[sizeof(rule->mbr_object.mbo_type) * CHAR_BIT + 1];
size_t left, len;
- int anymode, unknownmode, truncated, numfs, i, notdone;
+ int anymode, unknownmode, numfs, i, notdone;
cur = buf;
left = buflen;
- truncated = 0;
len = snprintf(cur, left, "subject ");
if (len < 0 || len > left)
@@ -1216,7 +1215,7 @@ bsde_delete_rule(int rulenum, size_t buf
{
struct mac_bsdextended_rule rule;
int name[10];
- size_t len, size;
+ size_t len;
int error;
if (bsde_check_version(buflen, errstr) != 0)
@@ -1233,7 +1232,6 @@ bsde_delete_rule(int rulenum, size_t buf
name[len] = rulenum;
len++;
- size = sizeof(rule);
error = sysctl(name, len, NULL, NULL, &rule, 0);
if (error) {
len = snprintf(errstr, buflen, "%s.%d: %s", MIB ".rules",
More information about the svn-src-head
mailing list