[PATCH 3/4] rtemsbsd/nfsclient: Fix the error code return value
Joel Sherrill
joel at rtems.org
Wed Oct 20 22:59:05 UTC 2021
On Wed, Oct 20, 2021, 12:49 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
>
>
> On 20/10/2021 05:16, chrisj at rtems.org wrote:
> > + errno = 0;
> > + return 0;
>
> I think setting errno if no error occurred is not allowed.
>
Right. Convention is that errno should not be touched by implementation or
read by application unless -1 is returned.
--joel
>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax: +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list