Commit 46b7f8c7 authored by Jonathan Currier's avatar Jonathan Currier

some code clean, beter whitespace, and drop dead code

parent 91d9248c
......@@ -310,6 +310,7 @@ int main(int argc, char **argv)
route_packets(argv[1]);
return 0;
}
#include <dirent.h>
#include <dlfcn.h>
......@@ -335,10 +336,13 @@ int register_netfn_cmd(int netfn, int cmd, int (*fnc)(struct ipmi_req *))
(netfn > (sizeof(netfn_name_lut)/sizeof(netfn_name_lut[0]))) ||
!netfn_name_lut[netfn].tbl)
return -1;
dprintf(1, "Installing handler\n");
netfn_name_lut[netfn].tbl[cmd].fnc = fnc;
return 0;
}
/* Walk through and load all the shared libs in our private directory.
* if people want us to load extra stuff they need only place a symlink
* (or a real file would work too)*/
......@@ -349,11 +353,6 @@ void load_addons()
int i;
char *file_name = NULL;
void *dl;
#if 0
struct dllib_ctx dc = {
.register_netfn_cmd = register_netfn_cmd,
};
#endif
void (*dinit)();
dprintf(1, "Scanning for handling libs\n");
ecount = scandir(IBMRDIR, &dl_list, addon_scan_filter, alphasort);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment