pointer related: can't figure out this bug
Hi, I'm getting the following error:
error: incompatible types in assignment
Here is the relevant struct declaration..
Code:
typedef struct _Format_list {
char *format_name;
FieldList field_list;
int struct_size;
OptInfo *opt_info;
}FormatRec, *FormatList, StructDescRec, *StructDescList;
Now here's is the function declaration for the function I'm trying to call:
Code:
extern submit_handle * create_subscriber_mq(char * name, StructDescRec* format, char* subtype, char* function_str, char* out_subtype)
This is how I create the struct:
Code:
StructDescRec format_list[] =
{
// a_field_list and b_field_list are of type FieldList
{"a_rec", a_field_list, sizeof(a_record), NULL},
{"b_rec", b_field_list, sizeof(b_record), NULL},
{NULL, NULL, 0, NULL}
};
Now here is my actual call:
Code:
handle = create_subscriber_mq("jaitest", mq_format_list, "subtype", trans, "outsub");
This is where the error actually occurs.. on this function call.
Any ideas?