summaryrefslogtreecommitdiff
path: root/common/util.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@google.com>2017-08-16 16:45:57 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-05-31 00:48:30 +0000
commit579266935a1bb3eb3a8bb918b47ea10f241ef143 (patch)
treef5c4e4ce6b8de183b4928526ea232eb1e704b0ac /common/util.c
parent2ef7dcb1e4f7000ac3f31dfb0abcff0cbb78afbd (diff)
downloadchrome-ec-579266935a1bb3eb3a8bb918b47ea10f241ef143.tar.gz
common: Use SVr4/4.3BSD/C89/C99 prototype for strlen
SVr4/4.3BSD/C89/C99 use a return value of size_t. To make interaction with code running on both userland and on the EC easier, change our function prototype to return size_t as well. Signed-off-by: Stefan Reinauer <reinauer@google.com> BRANCH=none BUG=none TEST=make buildall -j works Change-Id: I0f097c4d0db4232d888e1d54e6c1d22f4859a112 Reviewed-on: https://chromium-review.googlesource.com/618269 Commit-Ready: Stefan Reinauer <reinauer@google.com> Tested-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> (cherry picked from commit 55acd6957e5ae3d9916b39e57a8a4e52ad720fd1) Reviewed-on: https://chromium-review.googlesource.com/1050516 Tested-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> (cherry picked from commit acc9e412ab171fd4e871e6a9cc680b58da5312eb) Reviewed-on: https://chromium-review.googlesource.com/1080314
Diffstat (limited to 'common/util.c')
-rw-r--r--common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.c b/common/util.c
index bc4001ee22..a353c75a61 100644
--- a/common/util.c
+++ b/common/util.c
@@ -7,7 +7,7 @@
#include "util.h"
-int strlen(const char *s)
+size_t strlen(const char *s)
{
int len = 0;