Skip to content

Commit

Permalink
Address unused parameter and unused argument warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Welch authored and Welch committed Nov 27, 2024
1 parent e38ca30 commit 8267242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions osal/win32/osal.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ static double qpc2usec;

#define USECS_PER_SEC 1000000

int osal_getrelativetime(struct timeval *tv, struct timezone *tz)
static int osal_getrelativetime(struct timeval *tv, struct timezone *tz)
{
int64_t wintime, usecs;
(void)tz;
if(!sysfrequency)
{
timeBeginPeriod(1);
Expand All @@ -33,7 +34,7 @@ int osal_gettimeofday(struct timeval *tv, struct timezone *tz)
{
FILETIME system_time;
int64 system_time64, usecs;

(void)tz;
/* The offset variable is required to switch from Windows epoch (January 1, 1601) to
* Unix epoch (January 1, 1970). Number of days between both epochs: 134.774
*
Expand Down
3 changes: 1 addition & 2 deletions oshw/win32/nicdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ static void ecx_clear_rxbufstat(int *rxbufstat)
*/
int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary)
{
int i, rval;
int i;
pcap_t **psock;

rval = 0;
if (secondary)
{
/* secondary port struct available? */
Expand Down
1 change: 0 additions & 1 deletion oshw/win32/oshw.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ uint16 oshw_ntohs (uint16 network)
ec_adaptert * oshw_find_adapters (void)
{
int i = 0;
int ret = 0;
pcap_if_t *alldevs;
pcap_if_t *d;
ec_adaptert * adapter;
Expand Down

0 comments on commit 8267242

Please sign in to comment.