Skip to content

Commit

Permalink
fixing trailing whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Huseby committed Feb 11, 2015
1 parent cd8f317 commit 1386ad4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/flock.rs
Expand Up @@ -64,7 +64,7 @@ mod imp {
pub const F_SETLKW: libc::c_int = 13;
}

#[cfg(any(target_os = "dragonfly",
#[cfg(any(target_os = "dragonfly",
target_os = "bitrig",
target_os = "openbsd"))]
mod os {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/rtdeps.rs
Expand Up @@ -39,7 +39,7 @@ extern {}
#[link(name = "pthread")]
extern {}

#[cfg(any(target_os = "dragonfly",
#[cfg(any(target_os = "dragonfly",
target_os = "bitrig",
target_os = "openbsd"))]
#[link(name = "pthread")]
Expand Down
12 changes: 6 additions & 6 deletions src/libstd/sys/unix/fs.rs
Expand Up @@ -292,29 +292,29 @@ fn mkstat(stat: &libc::stat) -> FileStat {
fn mktime(secs: u64, nsecs: u64) -> u64 { secs * 1000 + nsecs / 1000000 }

#[cfg(target_os = "bitrig")]
fn ctime(stat: &libc::stat) -> u64 {
fn ctime(stat: &libc::stat) -> u64 {
mktime(stat.st_ctim.tv_sec as u64, stat.st_ctim.tv_nsec as u64)
}
#[cfg(not(target_os = "bitrig"))]
fn ctime(stat: &libc::stat) -> u64 {
fn ctime(stat: &libc::stat) -> u64 {
mktime(stat.st_ctime as u64, stat.st_ctime_nsec as u64)
}

#[cfg(target_os = "bitrig")]
fn atime(stat: &libc::stat) -> u64 {
fn atime(stat: &libc::stat) -> u64 {
mktime(stat.st_atim.tv_sec as u64, stat.st_atim.tv_nsec as u64)
}
#[cfg(not(target_os = "bitrig"))]
fn atime(stat: &libc::stat) -> u64 {
fn atime(stat: &libc::stat) -> u64 {
mktime(stat.st_atime as u64, stat.st_atime_nsec as u64)
}

#[cfg(target_os = "bitrig")]
fn mtime(stat: &libc::stat) -> u64 {
fn mtime(stat: &libc::stat) -> u64 {
mktime(stat.st_mtim.tv_sec as u64, stat.st_mtim.tv_nsec as u64)
}
#[cfg(not(target_os = "bitrig"))]
fn mtime(stat: &libc::stat) -> u64 {
fn mtime(stat: &libc::stat) -> u64 {
mktime(stat.st_mtime as u64, stat.st_mtime_nsec as u64)
}

Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/stack_overflow.rs
Expand Up @@ -206,7 +206,7 @@ mod imp {

}

#[cfg(any(target_os = "macos",
#[cfg(any(target_os = "macos",
target_os = "bitrig",
target_os = "openbsd"))]
mod signal {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/thread.rs
Expand Up @@ -74,7 +74,7 @@ pub mod guard {
static mut PAGE_SIZE: uint = 0;
static mut GUARD_PAGE: uint = 0;

#[cfg(any(target_os = "macos",
#[cfg(any(target_os = "macos",
target_os = "bitrig",
target_os = "openbsd"))]
unsafe fn get_stack_start() -> *mut libc::c_void {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/time.rs
Expand Up @@ -82,7 +82,7 @@ mod inner {
// Apparently android provides this in some other library?
// Bitrig's RT extensions are in the C library, not a separate librt
// OpenBSD provide it via libc
#[cfg(not(any(target_os = "android",
#[cfg(not(any(target_os = "android",
target_os = "bitrig",
target_os = "openbsd")))]
#[link(name = "rt")]
Expand Down

0 comments on commit 1386ad4

Please sign in to comment.