Fix htonl() arg & convert sizeof() to signed