]> git.baikalelectronics.ru Git - uboot.git/commit
tools: image-host.c: use correct variable for strerrno
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 13 Nov 2020 14:15:18 +0000 (15:15 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit4a7ffc69db92e0f931efed0cb3002220d3cab669
tree30aecebb0ac1447375653d268691a5d79f269e0f
parent0dd37ec3e763294d37074c6a694566bd7223be30
tools: image-host.c: use correct variable for strerrno

In the function get_random_data, strerrno is called with
the variable ret (which is the return of the function
clock_gettime). It should be called with errnor. This
commit fixes this mistake.

Reported-by: Coverity (CID: 312956)
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/image-host.c