sms_from_text needs to return struct gsm_sms *

This commit is contained in:
Harald Welte 2009-08-15 03:28:15 +02:00
parent 731fd91b24
commit 10250e657b
1 changed files with 3 additions and 3 deletions

View File

@ -1242,16 +1242,16 @@ static struct buffer *argv_to_buffer(int argc, const char *argv[], int base)
return b;
}
int sms_from_text(struct gsm_subscriber *receiver, const char *text)
struct gsm_sms *sms_from_text(struct gsm_subscriber *receiver, const char *text)
{
struct gsm_sms *sms = sms_alloc();
if (!sms)
return CMD_WARNING;
return NULL;
if (!receiver->lac) {
/* subscriber currently not attached, store in database? */
return CMD_WARNING;
return NULL;
}
sms->receiver = subscr_get(receiver);