gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / lib / mbschr.c
index ec1ebac..d66dae8 100644 (file)
@@ -1,5 +1,5 @@
 /* Searching a string for a character.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2013 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2007.
 
    This program is free software: you can redistribute it and/or modify
@@ -29,20 +29,20 @@ mbschr (const char *string, int c)
 {
   if (MB_CUR_MAX > 1
       /* Optimization: We know that ASCII characters < 0x30 don't occur as
-        part of multibyte characters longer than 1 byte.  Hence, if c < 0x30,
-        the faster unibyte loop can be used.  */
+         part of multibyte characters longer than 1 byte.  Hence, if c < 0x30,
+         the faster unibyte loop can be used.  */
       && (unsigned char) c >= 0x30)
     {
       mbui_iterator_t iter;
 
       for (mbui_init (iter, string);; mbui_advance (iter))
-       {
-         if (!mbui_avail (iter))
-           goto notfound;
-         if (mb_len (mbui_cur (iter)) == 1
-             && (unsigned char) * mbui_cur_ptr (iter) == (unsigned char) c)
-           break;
-       }
+        {
+          if (!mbui_avail (iter))
+            goto notfound;
+          if (mb_len (mbui_cur (iter)) == 1
+              && (unsigned char) * mbui_cur_ptr (iter) == (unsigned char) c)
+            break;
+        }
       return (char *) mbui_cur_ptr (iter);
      notfound:
       return NULL;