Re: [PATCH] Fix to stop a fall-through in a switch statement

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jul 13 12:15, Jordi Sanfeliu wrote:
> Hello,
> 
> The following fixes a fall-through that prevented from reading the next
> entry in the UTMP file and terminated the program with an abort().
> 
> diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c
> index c3a9b62..89ed739 100644
> --- a/newlib/libc/unix/getut.c
> +++ b/newlib/libc/unix/getut.c
> @@ -65,6 +65,7 @@ getutid (struct utmp *id)
>         case DEAD_PROCESS:
>           if (id->ut_id == utmp_data.ut_id)
>             return &utmp_data;
> +         break;
>         default:
>           abort ();
>         }

Your patch has whitespace problems (TABs -> space).  Just a hint
for next time, I applied and pushed it with changes for now.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAltIjnUACgkQ9TYGna5E
T6A3wRAAiNNm32tPvzy+AnoQoRvPmSF19wN1jUXiEooGadaMXywR3lQmNhUvax20
bvcWzSqfuCB8PFA8I3ZrGBnh1vcFKW5/3kp0Yd2H06BxFT6qRLUIv058sjmWVZAQ
yOP6XrwpGTav6L8m7GokimvRf2PTQeBm/nx48g/L3bkiZf4341QnWSuS56jNQYy7
LlUPrU4jkdCEylCeX84MsW9ZCvnmLLK7KYP+tMiNPLFp2zxbsrsWs0gDe+SZDQ3I
XMijGG7e5ZUBcAZVkz2oUo+9C1PXFswHUBi18epvMoSUR9Ya24+RbxoEodC/LEBw
mAE6eZXGuPPiM31IiO/a9zBw5c4tFH5L8xwUHCR7EejpfzsWe3JYvOBdNiQJJ8+t
jsfaS7OLxmOVWGlrFH3cluWWqI7ju7TomP5wxSr5iV5w/c21CHminBIKBmIHa3WX
4hRUaE8njkCuVBM6KVcQrNjyNkFUQ0Zg6OH8xIeCBMkPiv9d7V4hZGDBJeDCdgMK
95pLR3dDR/+yRIaO+hgBlyibs/a+5TWn/t4qlsC2Fcdm6cNj8YYEWmPWRy0fJ/b8
+cw2HVQdNoGWg//ZiTuZTIf/aqfrvAtlh4IgZ0m3O9e4hLWrR1U3jJljaFnbWyAD
UdTQ8y/dm25GS565xrgoYdaOgo4+VFsMS9/+sWrWHekBf3QJMng=
=V/le
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.