diff options
author | Holger Freyther <zecke@selfish.org> | 2009-02-23 00:50:34 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-02-23 00:50:34 +0000 |
commit | 73e61c4cd68db450de5a2ad1d0377b40d6429484 (patch) | |
tree | 3eb3160d1724142d689f0d731b8ddc086dac35e5 /tests | |
parent | b4064bca6eec50524c9aab4b04abcf4121f2d9c7 (diff) |
[sms] Remove hardcoded size and use the SIZE_OF trick..
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sms/sms_test.c | 2 |
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) { |