> So the solution is:
> 1. leave the intermediate event_type declared as an int.
> 2. then:
> . either cast it to ibv_event_type when calling
> openib_event_to_str()
> . or declare openib_event_to_str as accepting an int instead of an
> ibv_event_type.

Shouldn't we be keeping everything the same / native type as much as possible?