All pastes #478803 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-09 11:37 UTC
rendered paste body
Warning message is:
--------------------

load.c:64: warning: assignment from incompatible pointer type

My structure is:
----------------

struct czor_d {
        unsigned int    spamcount;
        time_t          spamtime;
        char            sha1txt [40];
        unsigned int    hamcount;
        time_t          hamtime;
};

I set a pointer
---------------

struct czor_d *p;

I want to set 'p' pointer to equal the same as data.dptr (which is a char *)

I use:
------

p = data.dptr;