commit | 73e61c4cd68db450de5a2ad1d0377b40d6429484 | [log] [tgz] |
---|---|---|
author | Holger Freyther <zecke@selfish.org> | Mon Feb 23 00:50:34 2009 +0000 |
committer | Holger Freyther <zecke@selfish.org> | Mon Feb 23 00:50:34 2009 +0000 |
tree | 3eb3160d1724142d689f0d731b8ddc086dac35e5 | |
parent | b4064bca6eec50524c9aab4b04abcf4121f2d9c7 [diff] [blame] |
[sms] Remove hardcoded size and use the SIZE_OF trick..
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c index fe1c346..63917a0 100644 --- a/tests/sms/sms_test.c +++ b/tests/sms/sms_test.c
@@ -65,7 +65,7 @@ } }; -#define SMS_NUM 2 +#define SMS_NUM (sizeof(sms_data)/sizeof(sms_data[0])) int main(int argc, char** argv) {