Removed const from declaration of res_get