mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Fix some unused warnings. One function is only used if
TWE_SHUTDOWN_NOTIFICATION is defined, the other two are never used.
This commit is contained in:
parent
98d0a7f844
commit
d62e201b7b
1 changed files with 8 additions and 0 deletions
|
|
@ -46,9 +46,13 @@ static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_i
|
|||
static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result);
|
||||
static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size,
|
||||
void (* func)(struct twe_request *tr));
|
||||
#ifdef TWE_SHUTDOWN_NOTIFICATION
|
||||
static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value);
|
||||
#endif
|
||||
#if 0
|
||||
static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value);
|
||||
static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value);
|
||||
#endif
|
||||
static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size,
|
||||
void *data);
|
||||
static int twe_init_connection(struct twe_softc *sc, int mode);
|
||||
|
|
@ -714,12 +718,15 @@ err:
|
|||
/********************************************************************************
|
||||
* Set integer parameter table entries.
|
||||
*/
|
||||
#ifdef TWE_SHUTDOWN_NOTIFICATION
|
||||
static int
|
||||
twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value)
|
||||
{
|
||||
return(twe_set_param(sc, table_id, param_id, sizeof(value), &value));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static int
|
||||
twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value)
|
||||
{
|
||||
|
|
@ -731,6 +738,7 @@ twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t valu
|
|||
{
|
||||
return(twe_set_param(sc, table_id, param_id, sizeof(value), &value));
|
||||
}
|
||||
#endif
|
||||
|
||||
/********************************************************************************
|
||||
* Perform a TWE_OP_SET_PARAM command, returns nonzero on error.
|
||||
|
|
|
|||
Loading…
Reference in a new issue