Update main.c

Replace "int* fd" by "int fd"