fix func proto
Added more input validation to add_friend functions.
The comments say this function only returns -1 on error, fixed that.
Merge branch 'ntox' of https://github.com/kitech/toxcore into kitech-ntox