diff options
author | Érico Rolim <erico.erc@gmail.com> | 2020-05-21 00:46:28 -0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-21 10:57:00 +0200 |
commit | 1d3681f5213535c1f47ed8bd0cddb7df775dd75e (patch) | |
tree | b9fce1efbd9b479832b0f1d3210602ec77e876b5 /sway/security.c | |
parent | Fix typos in comments (diff) | |
download | sway-1d3681f5213535c1f47ed8bd0cddb7df775dd75e.tar.gz sway-1d3681f5213535c1f47ed8bd0cddb7df775dd75e.tar.zst sway-1d3681f5213535c1f47ed8bd0cddb7df775dd75e.zip |
Remove code related to the security features
- Remove struct definitions
- Remove struct members
- Remove initializations and frees
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 | } | ||