> struct fid_pep *pep; > .... (struct fid_ep *) pep; /* bad casting */ > > However, something like this is okay: > > ... &pep.fid; /* get at the base fid object */ Well, it's okay if you ignore the compiler warning about using '.' rather than '->'