c - expected '=', ',', ';', 'asm' or '__attribute__' before func -
I have the following function with me and when I compile my whole file, I give a certain error:
Function:
Static Boolean 2388 e1000_phys_port (pic_t * pic, e1000_t * e1000) 2389 {2390 pic-> pic_flags = 0; 2391 2392 switch (pick-> pic_id) {2393 case I2C_ID_VSERIES_GIGE_PIC: 2394 e1000-> e1000_port_count = fwdd_vjx_get_e1000_ports (); 23 9 5 break; 2396 Default: 23 9 7 syslog (LOG_ERR, "% s: unknown I2C ID \ n", e1000- & gt; pic_name); 2398 returns (FALSE); 2399} 2400 2401 return (TRUE); 2402}
Error:
2388: error: expected '=', ',', ';', 'asm' or '__attribute__' before If someone for me this asap!
can solve I1000_phys_port boolean
(when Until you call it typedef
'adi somewhere in it) - Russell Zahnisar
What @RusselJahnaser means that any name in C booolan
Not defined, as long as the typedef
(or #define
) was defined using, for example typedef int booolan;
. - caspase
You will see #include & lt; Stdbool.h & gt;
and return type bool
, if you can - Class Lindback
Comments
Post a Comment