Skip to content

Commit 50d7aa7

Browse files
committed
refactor(docs): remove copyright comments
1 parent 8aa6a2f commit 50d7aa7

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-26
lines changed

src/timer/epoll.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Copyright 2021 Developers of Pyroscope.
2-
3-
// Licensed under the Apache License, Version 2.0 <LICENSE or
4-
// https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5-
// except according to those terms.
6-
71
use super::TimerSignal;
82
use crate::utils::check_err;
93
use crate::utils::get_time_range;

src/timer/kqueue.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Copyright 2021 Developers of Pyroscope.
2-
3-
// Licensed under the Apache License, Version 2.0 <LICENSE or
4-
// https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5-
// except according to those terms.
6-
71
use super::TimerSignal;
82
use crate::utils::check_err;
93
use crate::utils::get_time_range;
@@ -145,8 +139,8 @@ impl Timer {
145139
filter: libc::EVFILT_TIMER,
146140
flags: libc::EV_ADD | libc::EV_ENABLE,
147141
fflags: 0,
148-
data: duration.as_millis(),
149-
udata: std::ptr::null(),
142+
data: duration.as_millis() as isize,
143+
udata: 0 as *mut libc::c_void,
150144
};
151145

152146
// add loop event

src/timer/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Copyright 2021 Developers of Pyroscope.
2-
3-
// Licensed under the Apache License, Version 2.0 <LICENSE or
4-
// https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5-
// except according to those terms.
6-
71
/// A signal sent to the timer.
82
///
93
/// Either schedules another wake-up, or asks

src/timer/sleep.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Copyright 2021 Developers of Pyroscope.
2-
3-
// Licensed under the Apache License, Version 2.0 <LICENSE or
4-
// https://www.apache.org/licenses/LICENSE-2.0>. This file may not be copied, modified, or distributed
5-
// except according to those terms.
6-
71
use super::TimerSignal;
82
use crate::utils::get_time_range;
93
use crate::Result;

0 commit comments

Comments
 (0)