add prototype for res_hnok()