aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-23 00:50:34 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-23 00:50:34 +0000
commit73e61c4cd68db450de5a2ad1d0377b40d6429484 (patch)
tree3eb3160d1724142d689f0d731b8ddc086dac35e5 /tests
parentb4064bca6eec50524c9aab4b04abcf4121f2d9c7 (diff)
[sms] Remove hardcoded size and use the SIZE_OF trick..
Diffstat (limited to 'tests')
-rw-r--r--tests/sms/sms_test.c2
1 files changed, 1 insertions, 1 deletions
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)
{