[sms] Remove hardcoded size and use the SIZE_OF trick..
This commit is contained in:
parent
b4064bca6e
commit
73e61c4cd6
|
@ -65,7 +65,7 @@ static struct sms_datum sms_data[] = {
|
|||
}
|
||||
};
|
||||
|
||||
#define SMS_NUM 2
|
||||
#define SMS_NUM (sizeof(sms_data)/sizeof(sms_data[0]))
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue