tests: Fix function pointer prototype in regress.h

This was causing a "warning: function declaration isn't a
prototype" with strict-prototypes enabled.