title: Incompatible types when initializing type error
body: <p>I'm facing problems with pointers and structures in C. Let's say:</p>
  
  <pre><code>typedef struct mdata{
     int a;
     int b;
      ...
  } pred_data_attr;
  
  typedef struct mConfig{
     pred_data_attr mdata;
     ...
  } mConfig;
  
  struct control{
     struct mConfig mcfg;
     ...
  };
  
  INT32 rdfapp(struct control *rdf){
      pred_data_attr* mdata = rdf-&gt;mcfg.mdata;
      ...
  }
  </code></pre>
  
  <p>I got this error:</p>
  
  <blockquote>
    <p>incompatible types when initializing type 'struct pred_data_attr *' using type 'pred_data_attr'</p>
  </blockquote>
  
  <p>How can I fix this problem?</p>