summaryrefslogtreecommitdiff
path: root/ucoo/hal
diff options
context:
space:
mode:
authorNicolas Schodet2015-04-20 10:34:06 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commitdef502b1c9dba8d5e883e4a22c31a495b631e8a4 (patch)
tree0430a8432c4f4c3272b44e54b643a6b58f9bf2c3 /ucoo/hal
parent7a91c75e1cccf6b32b950100c3eb1a90402443d3 (diff)
Use C++11 feature to implement lengthof
Also disable warning about auto_ptr until it is changed.
Diffstat (limited to 'ucoo/hal')
-rw-r--r--ucoo/hal/uart/test/test_uart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucoo/hal/uart/test/test_uart.cc b/ucoo/hal/uart/test/test_uart.cc
index c1b111c..2c326f3 100644
--- a/ucoo/hal/uart/test/test_uart.cc
+++ b/ucoo/hal/uart/test/test_uart.cc
@@ -56,7 +56,7 @@ main (int argc, const char **argv)
char buf[64];
while (1)
{
- for (int i = 0; i < (int) lengthof (u); i++)
+ for (int i = 0; i < (int) ucoo::lengthof (u); i++)
{
if (u[i]->poll ())
{