Switch to unified view

a/src/bincimapmime/mime-utils.h b/src/bincimapmime/mime-utils.h
...
...
40
#endif /* NO_NAMESPACES */
40
#endif /* NO_NAMESPACES */
41
41
42
inline bool compareStringToQueue(const char *s_in, char *bqueue,
42
inline bool compareStringToQueue(const char *s_in, char *bqueue,
43
                 int pos, int size)
43
                 int pos, int size)
44
{
44
{
45
  for (int i = 0; i < size; ++i)
45
  for (int i = 0; i < size; ++i)  {
46
    if (s_in[i] != bqueue[(pos + i) % size])
46
    if (s_in[i] != bqueue[pos])
47
      return false;
47
      return false;
48
    if (++pos == size)
49
      pos = 0;
50
  }
48
51
49
  return true;
52
  return true;
50
}
53
}
51
54
52
#endif
55
#endif