fix use of htonl in constant outside function