freebsd_iflib: Fixes to avoid implicit-function-declaration errors.

No functional change intended.
This commit is contained in:
Augustin Cavalier
2024-08-24 01:44:41 -04:00
parent 21f02252ef
commit 10e9efaa5d
2 changed files with 14 additions and 10 deletions
+4
View File
@@ -4529,7 +4529,11 @@ iflib_if_qflush(if_t ifp)
* When ALTQ is enabled, this will also take care of purging the
* ALTQ queue(s).
*/
#ifdef __HAIKU__
ifp->if_qflush(ifp);
#else
if_qflush(ifp);
#endif
}
#define IFCAP_FLAGS (IFCAP_HWCSUM_IPV6 | IFCAP_HWCSUM | IFCAP_LRO | \
+10 -10
View File
@@ -1463,16 +1463,6 @@ nvlist_add_nvpair(nvlist_t *nvl, const nvpair_t *nvp)
nvlist_update_size(nvl, newnvp, 1);
}
void
nvlist_add_stringf(nvlist_t *nvl, const char *name, const char *valuefmt, ...)
{
va_list valueap;
va_start(valueap, valuefmt);
nvlist_add_stringv(nvl, name, valuefmt, valueap);
va_end(valueap);
}
void
nvlist_add_stringv(nvlist_t *nvl, const char *name, const char *valuefmt,
va_list valueap)
@@ -1493,6 +1483,16 @@ nvlist_add_stringv(nvlist_t *nvl, const char *name, const char *valuefmt,
}
}
void
nvlist_add_stringf(nvlist_t *nvl, const char *name, const char *valuefmt, ...)
{
va_list valueap;
va_start(valueap, valuefmt);
nvlist_add_stringv(nvl, name, valuefmt, valueap);
va_end(valueap);
}
void
nvlist_add_null(nvlist_t *nvl, const char *name)
{