Fix long lines

This commit is contained in:
Elly Jones 2011-11-09 00:27:48 -05:00 committed by Brian Anderson
parent c11c44abc0
commit 91e04f7dd2
2 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,9 @@ fn make_dir(p: path, mode: int) -> bool {
fn mkdir(_p: path, _mode: int) -> bool {
// FIXME: turn mode into something useful?
let noctx = ptr::null<os::kernel32::LPSECURITY_ATTRIBUTES>();
ret str::as_buf(_p, {|buf| os::kernel32::CreateDirectory(buf, noctx) });
ret str::as_buf(_p, {|buf|
os::kernel32::CreateDirectory(buf, noctx)
});
}
#[cfg(target_os = "linux")]

View File

@ -67,7 +67,8 @@ fn mk_rng() -> rng {
let s = "";
let i = 0u;
while (i < len) {
let n = rustrt::rand_next(**c) as uint % str::char_len(charset);
let n = rustrt::rand_next(**c) as uint %
str::char_len(charset);
s = s + str::from_char(str::char_at(charset, n));
i += 1u;
}