Forward declare methods to fix compiler warnings

Put the used method in the header files or use extern
in the case of a vty method used by token_auth
This commit is contained in:
Holger Hans Peter Freyther 2009-10-22 15:39:37 +02:00
parent 2657abfe35
commit 65fb0fda9d
3 changed files with 7 additions and 0 deletions

View File

@ -210,4 +210,7 @@ int gsm411_send_sms_lchan(struct gsm_lchan *lchan, struct gsm_sms *sms);
struct gsm_sms *sms_alloc(void);
void sms_free(struct gsm_sms *sms);
void _gsm411_sms_trans_free(struct gsm_trans *trans);
int gsm411_send_sms_subscr(struct gsm_subscriber *subscr,
struct gsm_sms *sms);
#endif

View File

@ -67,5 +67,6 @@ int bsc_timer_pending(struct timer_list *timer);
struct timeval *bsc_nearest_timer();
void bsc_prepare_timers();
int bsc_update_timers();
int bsc_timer_check(void);
#endif

View File

@ -33,6 +33,9 @@
#define TOKEN_SMS_TEXT "HAR 2009 GSM. Register at http://har2009.gnumonks.org/ " \
"Your IMSI is %s, auth token is %08X, phone no is %s."
extern struct gsm_sms *sms_from_text(struct gsm_subscriber *receiver,
const char *text);
static char *build_sms_string(struct gsm_subscriber *subscr, u_int32_t token)
{
char *sms_str;