OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 #include "handlers.h" | 5 #include "handlers.h" |
6 | 6 |
7 #include <arpa/inet.h> | 7 #include <arpa/inet.h> |
8 #include <assert.h> | 8 #include <assert.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <limits.h> | 10 #include <limits.h> |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 int result = close(sock); | 1105 int result = close(sock); |
1106 if (result != 0) { | 1106 if (result != 0) { |
1107 *out_error = PrintfToNewString("close returned error: %d", errno); | 1107 *out_error = PrintfToNewString("close returned error: %d", errno); |
1108 return 1; | 1108 return 1; |
1109 } | 1109 } |
1110 | 1110 |
1111 CREATE_RESPONSE(close); | 1111 CREATE_RESPONSE(close); |
1112 RESPONSE_INT(sock); | 1112 RESPONSE_INT(sock); |
1113 return 0; | 1113 return 0; |
1114 } | 1114 } |
OLD | NEW |