install the callback function

This commit is contained in:
Holger Vogt 2020-10-16 18:15:05 +02:00
parent 28861739f8
commit a95700799d
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ void cm_pswitch(ARGS) /* structure holding parms,
}
if(INIT == 1) { /* first time through, allocate memory, set static parameters */
CALLBACK = cm_pswitch_callback;
/*** allocate static storage for *loc ***/
STATIC_VAR (locdata) = calloc (1 , sizeof ( Local_Data_t ));
loc = STATIC_VAR (locdata);