diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-23 23:53:35 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-07-23 23:53:35 +0200 |
commit | ba6713e21232d0a80d665e7e5541c7c3a28eb99e (patch) | |
tree | 97e702ea3afd5d9efbec3d0c70193b761a375361 /misc/main.go | |
parent | faf64e8bb35ed93fe9a691f9899389a65e35ae20 (diff) |
Mimic stdlib
Diffstat (limited to 'misc/main.go')
-rw-r--r-- | misc/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/main.go b/misc/main.go index dcf9b98..fbc967b 100644 --- a/misc/main.go +++ b/misc/main.go @@ -5,7 +5,6 @@ import ( "flag" "fmt" "log" - "io/ioutil" "dim13.org/asn1/tde" ) @@ -212,7 +211,7 @@ func Ask(c tde.TDE, out []byte) []byte { log.Println("Ask") dump(out) c.Write(out) - in, _ := ioutil.ReadAll(c) + in, _ := tde.ReadAll(c) log.Printf("Packet length: 0x%.2X\n", len(in)) dump(in) return in @@ -220,7 +219,7 @@ func Ask(c tde.TDE, out []byte) []byte { func Status(c tde.TDE) { log.Println("Status") - in, _ := ioutil.ReadAll(c) + in, _ := tde.ReadAll(c) log.Printf("Packet length: 0x%.2X\n", len(in)) dump(in) out := status |