aboutsummaryrefslogtreecommitdiff
path: root/plugins/shortcuts
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-06-17 00:29:27 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-06-17 00:29:27 -0600
commit98f6d5630f6be4f955e308a5c1a91749f8cf7300 (patch)
treef04a500810ec9190fc5cb095c46add839d4f06bf /plugins/shortcuts
parent1cf68bb1fe2ebabb470dc072f300fbf7d3f7d5fa (diff)
alerts v2, formatting
Diffstat (limited to 'plugins/shortcuts')
-rw-r--r--plugins/shortcuts/shortcuts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/shortcuts/shortcuts.c b/plugins/shortcuts/shortcuts.c
index 1af4fda..7ee9e2e 100644
--- a/plugins/shortcuts/shortcuts.c
+++ b/plugins/shortcuts/shortcuts.c
@@ -2,8 +2,8 @@
#include <stdio.h>
#include <string.h>
-#include "../libre_redirect/str_replace_start.h"
#include "../libre_redirect/str_init.h"
+#include "../libre_redirect/str_replace_start.h"
#define SHORTCUT_N 41
@@ -33,8 +33,8 @@ int shortcut_expand(const char* uri, char* output)
char* shortcuts[] = {
"!fnf",
"!fnc",
- "!hn",
- "!hnb"
+ "!hn",
+ "!hnb"
};
char* expansions[] = {
@@ -45,7 +45,7 @@ int shortcut_expand(const char* uri, char* output)
};
// len = sizeof(shortcuts) / sizeof(shortcuts[0]);
- len = sizeof(shortcuts) / sizeof(char *);
+ len = sizeof(shortcuts) / sizeof(char*);
for (int i = 0; i < len; i++) {
int replace_check = str_replace_start(tmp_uri, shortcuts[i],