struct pollfd ufds[1]; sockfd = socket(PF_INET, SOCK_STREAM, 0) ufds[0] = sockfd; The error: incompatible types in assignment