From 73e61c4cd68db450de5a2ad1d0377b40d6429484 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Mon, 23 Feb 2009 00:50:34 +0000 Subject: [PATCH] [sms] Remove hardcoded size and use the SIZE_OF trick.. --- tests/sms/sms_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c index fe1c34604..63917a055 100644 --- a/tests/sms/sms_test.c +++ b/tests/sms/sms_test.c @@ -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) {