Add const qualifier to register_endpoint param
Merge pull request #1057 from hurtonm/master

Add const qualifier to register_endpoint param