int DiffState( const Options & /*opts*/, const ReadUserLog::FileState &state1, const ReadUserLog::FileState &state2 ) { ReadUserLogStateAccess access1(state1); ReadUserLogStateAccess access2(state2); int errors = 0; return errors ? -1 : 0; }
int main() { struct list_t *list; void *tmp; struct list_t locvar1, locvar0, *arr[2]; arr[0] = &locvar0; arr[1] = &locvar1; //struct list_t *ptr = locvar; //tmp = locvar; //malloc(sizeof(struct list_t ) ); list = (struct list_t *) arr;//(tmp); return access2(list); }