time: use `&C.time_t` instead of `&time_t` in C fn declaration (#11232)
							parent
							
								
									d2ce1f74d6
								
							
						
					
					
						commit
						b3c641f7d5
					
				| 
						 | 
					@ -21,7 +21,7 @@ struct C.tm {
 | 
				
			||||||
fn C.timegm(&C.tm) C.time_t
 | 
					fn C.timegm(&C.tm) C.time_t
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// fn C.gmtime_r(&tm, &gbuf)
 | 
					// fn C.gmtime_r(&tm, &gbuf)
 | 
				
			||||||
fn C.localtime_r(t &time_t, tm &C.tm)
 | 
					fn C.localtime_r(t &C.time_t, tm &C.tm)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn make_unix_time(t C.tm) i64 {
 | 
					fn make_unix_time(t C.tm) i64 {
 | 
				
			||||||
	return i64(C.timegm(&t))
 | 
						return i64(C.timegm(&t))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue