From b4357a8eb6b9a5c0452fc0d127e37e54dc09e1a0 Mon Sep 17 00:00:00 2001
From: Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>
Date: Sat, 15 Apr 2017 17:04:04 +0300
Subject: [PATCH] Rename get_policy to get_feature_policy

---
 sway/commands/permit.c | 6 +++---
 1 file 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,
 	return features;
 }
 
-static struct feature_policy *get_policy(const char *name) {
+static struct feature_policy *get_feature_policy(const char *name) {
 	struct feature_policy *policy = NULL;
 	for (int i = 0; i < config->feature_policies->length; ++i) {
 		struct feature_policy *p = config->feature_policies->items[i];
@@ -66,7 +66,7 @@ struct cmd_results *cmd_permit(int argc, char **argv) {
 		return error;
 	}
 
-	struct feature_policy *policy = get_policy(argv[0]);
+	struct feature_policy *policy = get_feature_policy(argv[0]);
 	policy->features |= get_features(argc, argv, &error);
 
 	sway_log(L_DEBUG, "Permissions granted to %s for features %d",
@@ -84,7 +84,7 @@ struct cmd_results *cmd_reject(int argc, char **argv) {
 		return error;
 	}
 
-	struct feature_policy *policy = get_policy(argv[0]);
+	struct feature_policy *policy = get_feature_policy(argv[0]);
 	policy->features &= ~get_features(argc, argv, &error);
 
 	sway_log(L_DEBUG, "Permissions granted to %s for features %d",