Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!ub!acsu.buffalo.edu From: haozhou@acsu.buffalo.edu (Hao Zhou) Newsgroups: comp.lang.c Subject: "illegal pointer combination" problem Message-ID: <63309@eerie.acsu.Buffalo.EDU> Date: 5 Mar 91 16:40:56 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 26 Nntp-Posting-Host: autarch.acsu.buffalo.edu This warning message keeps bothering me although my program runs correctly. I am seeking an explaination to it. In global: struct pcb { int no[QLEN]; char *argv[QLEN][WRDNUM]; }; In main(): struct pcb *tb; getseg(&tb); In getseg(p): struct pcb **p; /* pointer to pcb pointer */ *p = (struct pcb *) shmat(shmid,(char *)0,0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is the line which gives the warning error. Any help on this will be highly appreciated. Thanks in advance. - Hao -- Internet:haozhou@acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu@UBVM.BITNET UUCP: rutgers!ub!haozhou