"illegal pointer combination" problem

Hao Zhou haozhou at acsu.buffalo.edu
Wed Mar 6 02:40:56 AEST 1991


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 at acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu at UBVM.BITNET
UUCP: rutgers!ub!haozhou



More information about the Comp.lang.c mailing list