##// END OF EJS Templates
branching: merge stable into default
Raphaël Gomès -
r49821:a82f5d2b merge default
parent child Browse files
Show More
@@ -168,7 +168,7 b' static const long entry_cl2_offset_rank '
168 /* next free offset: 73 */
168 /* next free offset: 73 */
169
169
170 static const char comp_mode_inline = 2;
170 static const char comp_mode_inline = 2;
171 static const char rank_unknown = -1;
171 static const int rank_unknown = -1;
172
172
173 static void raise_revlog_error(void)
173 static void raise_revlog_error(void)
174 {
174 {
@@ -145,7 +145,7 b' lazy_static::lazy_static! {'
145
145
146 /// Same as https://github.com/python/cpython/blob/v3.10.0/Modules/socketmodule.c#L5414
146 /// Same as https://github.com/python/cpython/blob/v3.10.0/Modules/socketmodule.c#L5414
147 const BUFFER_SIZE: usize = 1024;
147 const BUFFER_SIZE: usize = 1024;
148 let mut buffer = [0_i8; BUFFER_SIZE];
148 let mut buffer = [0 as libc::c_char; BUFFER_SIZE];
149 let hostname_bytes = unsafe {
149 let hostname_bytes = unsafe {
150 let result = libc::gethostname(buffer.as_mut_ptr(), BUFFER_SIZE);
150 let result = libc::gethostname(buffer.as_mut_ptr(), BUFFER_SIZE);
151 if result != 0 {
151 if result != 0 {
General Comments 0
You need to be logged in to leave comments. Login now