From b30621bb3ba9d1b3287bc700c173f4163273975c Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 16 Aug 2022 13:18:51 +0200 Subject: [PATCH] Minor, coding style Signed-off-by: Joachim Wiberg --- src/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 8458cc8c..7e46d383 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -158,8 +158,8 @@ plugin_t *plugin_find(char *name) SEARCH_PLUGIN(name); if (plugpath && name[0] != '/') { - int noext; char path[CMD_SIZE]; + int noext; noext = strcmp(name + strlen(name) - 3, ".so"); snprintf(path, sizeof(path), "%s%s%s%s", plugpath, @@ -350,9 +350,9 @@ static void check_plugin_depends(plugin_t *plugin) static int load_plugins(char *path) { + struct dirent *entry; int fail = 0; DIR *dp; - struct dirent *entry; dp = opendir(path); if (!dp) {