Added a return 0; to gethostname to prevent a warning from appearing while compiling.