Small code cleanup

- add const modifier to address parameter of event generating functions