The numerous warnings are of two groups: 1. Overly aggressive const-ness -- the pointer to pam_handle_t* is never const, for example, and pam_get_data's last argument should not be const either. 2. Casting pointers into 32-bit integers for printing -- a problem on 64-bit systems. The patch I'm about to attach closes all of these warnings by removing const, where needed, and by printing pointers using %p instead of the dubious casting. Please, review.
Created attachment 2703 [details] silence the warnings on FreeBSD/amd64
sorry, for the long delay, those seem to be fixed already.