1
0
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:
henri
2012-12-22 21:59:38 +00:00
parent 89f69c40e7
commit 2774c8cce6
6 changed files with 74 additions and 167 deletions

View File

@@ -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) {