| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 {{generator_warning}} | 5 {{generator_warning}} |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "mojo/public/c/system/core.h" | 10 #include "mojo/public/c/system/core.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 size_t tablesize) { | 34 size_t tablesize) { |
| 35 static const size_t size = sizeof(kIrtMojo); | 35 static const size_t size = sizeof(kIrtMojo); |
| 36 if (0 == strcmp(interface_ident, NACL_IRT_MOJO_v0_1)) { | 36 if (0 == strcmp(interface_ident, NACL_IRT_MOJO_v0_1)) { |
| 37 if (size <= tablesize) { | 37 if (size <= tablesize) { |
| 38 memcpy(table, &kIrtMojo, size); | 38 memcpy(table, &kIrtMojo, size); |
| 39 return size; | 39 return size; |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 return 0; | 42 return 0; |
| 43 } | 43 } |
| OLD | NEW |