mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	[timer] Fix compile warning of the timer test
This commit is contained in:
		@@ -25,7 +25,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "../../config.h"
 | 
					#include "../../config.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void timer_fired(unsigned long data);
 | 
					static void timer_fired(void *data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct timer_list timer_one = {
 | 
					static struct timer_list timer_one = {
 | 
				
			||||||
    .cb = timer_fired,
 | 
					    .cb = timer_fired,
 | 
				
			||||||
@@ -42,8 +42,9 @@ static struct timer_list timer_three = {
 | 
				
			|||||||
    .data = (void*)3,
 | 
					    .data = (void*)3,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void timer_fired(unsigned long data)
 | 
					static void timer_fired(void *_data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    unsigned long data = (unsigned long) _data;
 | 
				
			||||||
    printf("Fired timer: %lu\n", data);
 | 
					    printf("Fired timer: %lu\n", data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (data == 1) {
 | 
					    if (data == 1) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user