C Error: makes pointer from integer without a cast


interval.c

#define STOP_INTERVAL   300

void poll_mobile(const char *value)


{
     /* Do something*/
}

main () 
{
 poll_mobile(STOP_INTERVAL);
}


       
interval.c: In function ‘main’:
interval.c:9: error: passing argument 1 of ‘main’ makes pointer from integer without a cast [-Werror=int-conversion]


Solution
#define STOP_INTERVAL   "300"



Comments