res_send: Remove typos and multiple declarations

Change-Id: Ibafb49c9998f60ef5c25c9dd90b034afc1bcfa62
Signed-off-by: zwliew <zhaoweiliew@gmail.com>