[sms] Remove hardcoded size and use the SIZE_OF trick..

This commit is contained in:
Holger Freyther 2009-02-23 00:50:34 +00:00
parent b4064bca6e
commit 73e61c4cd6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{