Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ipmi-bt-miniroute
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
BangBMC Firmware
ipmi-bt-miniroute
Commits
46b7f8c7
Commit
46b7f8c7
authored
Aug 20, 2019
by
Jonathan Currier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some code clean, beter whitespace, and drop dead code
parent
91d9248c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/bin/ipmi-bt-miniroute.c
src/bin/ipmi-bt-miniroute.c
+4
-5
No files found.
src/bin/ipmi-bt-miniroute.c
View file @
46b7f8c7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment