title: Error "Conversion to non-scalar type requested"
body: <p>I'm trying to implement a multithread server with a thread pool and using the select, so I have <code>fd_set set</code> declared globally that I pass to the function that the thread pool runs.I get this error</p>
  
  <blockquote>
    <p>In function ‘threadF’ conversion to non-scalar type requested
          fd_set set1=(fd_set) s;</p>
  </blockquote>
  
  <p>and the code is this</p>
  
  <pre><code>pool *createPool(int size){
      /*...*/
      if((err=pthread_create(&amp;id,NULL,&amp;threadF,(void *)&amp;set))!=0){
          fprintf(stderr,"thread\n");
          exit(errno);
      }
      /*...*/
  }
  
  void *threadF(void* s){
      fd_set set1=(fd_set) s;
      /*...*/
  }
  </code></pre>
  
  <p>Maybe I'm forgetting something?</p>