mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 17:39:03 +00:00
Filespace code cleanup.
- Removed dead code. - Fixed style, improved consistency. - Replaced FILESPACE_LENGTH and FILESPACE_STR macros by identical static inline functions. - Made fs_cat() a regular function. There's no actual benefit of having it inlined.
This commit is contained in:
@@ -115,8 +115,8 @@ char *nse_readbuf(nsock_event nse, int *nbytes) {
|
||||
msevent *me = (msevent *)nse;
|
||||
|
||||
if (nbytes)
|
||||
*nbytes = FILESPACE_LENGTH(&(me->iobuf));
|
||||
return FILESPACE_STR(&(me->iobuf));
|
||||
*nbytes = fs_length(&(me->iobuf));
|
||||
return fs_str(&(me->iobuf));
|
||||
}
|
||||
|
||||
static void first_ev_next(msevent *nse, gh_list_elem **first) {
|
||||
|
||||
Reference in New Issue
Block a user