Automatically reformat com32/lib/strrchr.c using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
char *strrchr(const char *s, int c)
{
- const char *found = NULL;
+ const char *found = NULL;
- while ( *s ) {
- if ( *s == (char) c )
- found = s;
- s++;
- }
+ while (*s) {
+ if (*s == (char)c)
+ found = s;
+ s++;
+ }
- return (char *)found;
+ return (char *)found;
}