OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Stub implementations of utility functions which call their linux-specific | 5 * Stub implementations of utility functions which call their linux-specific |
6 * equivalents. | 6 * equivalents. |
7 */ | 7 */ |
8 | 8 |
9 #define _STUB_IMPLEMENTATION_ | 9 #define _STUB_IMPLEMENTATION_ |
10 #include "utility.h" | 10 #include "utility.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 int match = 0; | 63 int match = 0; |
64 const unsigned char* us1 = s1; | 64 const unsigned char* us1 = s1; |
65 const unsigned char* us2 = s2; | 65 const unsigned char* us2 = s2; |
66 while (n--) { | 66 while (n--) { |
67 if (*us1++ != *us2++) | 67 if (*us1++ != *us2++) |
68 match = 1; | 68 match = 1; |
69 } | 69 } |
70 | 70 |
71 return match; | 71 return match; |
72 } | 72 } |
OLD | NEW |