Skip to content

Commit 7c8e569

Browse files
authored
Merge pull request #13 from pswilde/master
revert breaking change in session_last_error proc
2 parents fe83d73 + ff899cd commit 7c8e569

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libssh2.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ proc publickey_remove*(p: PublicKey, name, blob: cstring, blobLen: int): cint {.
509509

510510
proc publickey_shutdown*(p: PublicKey): cint {.ssh2.}
511511

512-
proc scp_recv*(s: Session, path: cstring, sb: Stat) {.ssh2.}
512+
proc scp_recv*(s: Session, path: cstring, sb: Stat): Channel {.ssh2.}
513513

514514
proc scp_send_ex*(s: Session, path: cstring, mode, size: int, mtime, atime: int64): Channel {.ssh2.}
515515

@@ -558,7 +558,7 @@ proc session_init*(): Session =
558558

559559
proc session_last_errno*(s: Session): cint {.ssh2.}
560560

561-
proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLene, wantBuf: int): cint {.ssh2.}
561+
proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLen: ptr cint, wantBuf: int): cint {.ssh2.}
562562

563563
proc session_method_pref*(s: Session, methodType: int, prefs: cstring): cint {.ssh2.}
564564

libssh2.nimble

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Package]
22
name = "libssh2"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
author = "Huy Doan"
55
description = "Nim wrapper for libssh2"
66
license = "MIT"

0 commit comments

Comments
 (0)