changed ftp to use integer codes

Signed-off-by: Graham Chiu <compkarori@gmail.com>