mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +00:00
Minor, coding style
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
d6f35903d6
commit
b30621bb3b
1 file changed
+2
-2
+2
-2
@@ -158,8 +158,8 @@ plugin_t *plugin_find(char *name)
|
|||||||
SEARCH_PLUGIN(name);
|
SEARCH_PLUGIN(name);
|
||||||
|
|
||||||
if (plugpath && name[0] != '/') {
|
if (plugpath && name[0] != '/') {
|
||||||
int noext;
|
|
||||||
char path[CMD_SIZE];
|
char path[CMD_SIZE];
|
||||||
|
int noext;
|
||||||
|
|
||||||
noext = strcmp(name + strlen(name) - 3, ".so");
|
noext = strcmp(name + strlen(name) - 3, ".so");
|
||||||
snprintf(path, sizeof(path), "%s%s%s%s", plugpath,
|
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)
|
static int load_plugins(char *path)
|
||||||
{
|
{
|
||||||
|
struct dirent *entry;
|
||||||
int fail = 0;
|
int fail = 0;
|
||||||
DIR *dp;
|
DIR *dp;
|
||||||
struct dirent *entry;
|
|
||||||
|
|
||||||
dp = opendir(path);
|
dp = opendir(path);
|
||||||
if (!dp) {
|
if (!dp) {
|
||||||
|
|||||||
Reference in new issue
Block a user