Same code... but warning!Any ideas?

Posted by FILIaS on Stack Overflow See other posts from Stack Overflow or by FILIaS
Published on 2010-05-17T13:45:53Z Indexed on 2010/05/17 13:50 UTC
Read the original article Hit count: 253

Filed under:
|
|

I've a question for a warning message that i get. For this line,using qsort:

qsort(catalog, MAX ,sizeof catalog, struct_cmp_by_amount);

I get this warning:

warning: passing argument 4 of ‘qsort’ makes pointer from integer without a cast

struct_cmp_by_amount is another function on the program.

BUT,for another program with the same code, with the same exactly struct_cmp_by_amount function, i dont get that warning for the 4th argument!

qsort(structs, structs_len, sizeof(struct st_ex), struct_cmp_by_price);

I'm wandering about why that;s happening. Have you any idea?

© Stack Overflow or respective owner

Related posts about warnings

Related posts about arguments