Oh, I also just noticed : you should probably declare int subscr_get_key_seq(struct osmocom_ms *ms, struct gsm_subscriber *subscr); somewhre in a .h ... Cheers, Sylvain