- commit
- 6e598bf072ddeb51fa5175e301ab3cb11d60a621
- parent
- 92b42cac05422529b9335cc0e3e4236d4018b80c
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-02-21 05:05
portable signal types
Diffstat
| M | src/main.rs | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
@@ -19,7 +19,7 @@ const BLUE: [u8; 3] = [0x00, 0x00, 0xff]; 19 19 20 20 static RUNNING: AtomicBool = AtomicBool::new(true); 21 2122 -1 fn quit(_sig: i32) {-1 22 fn quit(_sig: libc::c_int) { 23 23 RUNNING.fetch_and(false, Ordering::Relaxed); 24 24 } 25 25 @@ -49,7 +49,7 @@ fn main() { 49 49 let mut game = game::Game::new(); 50 50 51 51 unsafe {52 -1 libc::signal(libc::SIGINT, quit as usize);-1 52 libc::signal(libc::SIGINT, quit as libc::sighandler_t); 53 53 } 54 54 55 55 let mut time0 = time::Instant::now();