Automatically reformat com32/lib/memchr.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>
void *memchr(const void *s, int c, size_t n)
{
- const unsigned char *sp = s;
+ const unsigned char *sp = s;
- while ( n-- ) {
- if ( *sp == (unsigned char)c )
- return (void *)sp;
- }
+ while (n--) {
+ if (*sp == (unsigned char)c)
+ return (void *)sp;
+ }
- return NULL;
+ return NULL;
}