aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>2017-04-15 17:04:04 +0300
committerLibravatar Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>2017-04-16 17:09:53 +0300
commitb4357a8eb6b9a5c0452fc0d127e37e54dc09e1a0 (patch)
treeb16c5e6b514d420c4a5bce7fafb3873f1fc9d13e /sway
parentDisambiguate get_*_policy() and get_*_policy_mask() (diff)
downloadsway-b4357a8eb6b9a5c0452fc0d127e37e54dc09e1a0.tar.gz
sway-b4357a8eb6b9a5c0452fc0d127e37e54dc09e1a0.tar.zst
sway-b4357a8eb6b9a5c0452fc0d127e37e54dc09e1a0.zip
Rename get_policy to get_feature_policy
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/permit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/permit.c b/sway/commands/permit.c
index e2bec2e2..4a78ef0d 100644
--- a/sway/commands/permit.c
+++ b/sway/commands/permit.c
@@ -38,7 +38,7 @@ static enum secure_feature get_features(int argc, char **argv,
38 return features; 38 return features;
39} 39}
40 40
41static struct feature_policy *get_policy(const char *name) { 41static struct feature_policy *get_feature_policy(const char *name) {
42 struct feature_policy *policy = NULL; 42 struct feature_policy *policy = NULL;
43 for (int i = 0; i < config->feature_policies->length; ++i) { 43 for (int i = 0; i < config->feature_policies->length; ++i) {
44 struct feature_policy *p = config->feature_policies->items[i]; 44 struct feature_policy *p = config->feature_policies->items[i];
@@ -66,7 +66,7 @@ struct cmd_results *cmd_permit(int argc, char **argv) {
66 return error; 66 return error;
67 } 67 }
68 68
69 struct feature_policy *policy = get_policy(argv[0]); 69 struct feature_policy *policy = get_feature_policy(argv[0]);
70 policy->features |= get_features(argc, argv, &error); 70 policy->features |= get_features(argc, argv, &error);
71 71
72 sway_log(L_DEBUG, "Permissions granted to %s for features %d", 72 sway_log(L_DEBUG, "Permissions granted to %s for features %d",
@@ -84,7 +84,7 @@ struct cmd_results *cmd_reject(int argc, char **argv) {
84 return error; 84 return error;
85 } 85 }
86 86
87 struct feature_policy *policy = get_policy(argv[0]); 87 struct feature_policy *policy = get_feature_policy(argv[0]);
88 policy->features &= ~get_features(argc, argv, &error); 88 policy->features &= ~get_features(argc, argv, &error);
89 89
90 sway_log(L_DEBUG, "Permissions granted to %s for features %d", 90 sway_log(L_DEBUG, "Permissions granted to %s for features %d",