diff options
Diffstat (limited to 'sway/security.c')
-rw-r--r-- | sway/security.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sway/security.c b/sway/security.c deleted file mode 100644 index 6a00229e..00000000 --- a/sway/security.c +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #define _POSIX_C_SOURCE 200809L | ||
2 | #include <stdlib.h> | ||
3 | #include <string.h> | ||
4 | #include "sway/security.h" | ||
5 | |||
6 | struct command_policy *alloc_command_policy(const char *command) { | ||
7 | struct command_policy *policy = malloc(sizeof(struct command_policy)); | ||
8 | if (!policy) { | ||
9 | return NULL; | ||
10 | } | ||
11 | policy->command = strdup(command); | ||
12 | if (!policy->command) { | ||
13 | free(policy); | ||
14 | return NULL; | ||
15 | } | ||
16 | policy->context = 0; | ||
17 | return policy; | ||
18 | } | ||