Skip to content

Commit b290073

Browse files
committed
---
yaml --- r: 273347 b: refs/heads/beta c: 7c66a89 h: refs/heads/master i: 273345: 13c0c68 273343: 6e75a7d
1 parent a89ea39 commit b290073

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 5bf1e58bc0f999a8c179e8a641779bed2d2cad4e
26+
refs/heads/beta: 7c66a89849b2d0025121a0898c4ab298da8814bf
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/test/run-pass/variadic-ffi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ pub fn main() {
4545
let x: unsafe extern fn(*mut c_char, *const c_char, ...) -> c_int = sprintf;
4646

4747
// A function that takes a function pointer
48-
unsafe fn call(p: unsafe extern fn(*mut c_char, *const c_char, ...) -> c_int) {
48+
unsafe fn call(fp: unsafe extern fn(*mut c_char, *const c_char, ...) -> c_int) {
4949
// Call with just the named parameter
5050
let c = CString::new(&b"Hello World\n"[..]).unwrap();
51-
check("Hello World\n", |s| sprintf(s, c.as_ptr()));
51+
check("Hello World\n", |s| fp(s, c.as_ptr()));
5252

5353
// Call with variable number of arguments
5454
let c = CString::new(&b"%d %f %c %s\n"[..]).unwrap();
5555
check("42 42.500000 a %d %f %c %s\n\n", |s| {
56-
sprintf(s, c.as_ptr(), 42, 42.5f64, 'a' as c_int, c.as_ptr());
56+
fp(s, c.as_ptr(), 42, 42.5f64, 'a' as c_int, c.as_ptr());
5757
});
5858
}
5959

0 commit comments

Comments
 (0)