From 04c0f7e15c03dc1ff9b809c93a7c55c9b5174db6 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 5 Jan 2015 17:38:39 +0100 Subject: [PATCH 1/2] cmd/rlpdump: add license header and synopsis --- cmd/rlpdump/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index 4fb53369af..2454d22793 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -1,3 +1,21 @@ +/* + This file is part of go-ethereum + + go-ethereum is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + go-ethereum is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with go-ethereum. If not, see . +*/ + +// rlpdump is a pretty-printer for RLP data. package main import ( From ec4dee0fcd6cd571ffd146cbebb7367e91457a46 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 5 Jan 2015 17:42:20 +0100 Subject: [PATCH 2/2] cmd/rlpdump: remove extra buffer --- cmd/rlpdump/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index 2454d22793..4c188e179d 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -19,7 +19,6 @@ package main import ( - "bufio" "bytes" "encoding/hex" "flag" @@ -67,7 +66,7 @@ func main() { die(err) } defer fd.Close() - r = bufio.NewReader(fd) + r = fd default: fmt.Fprintln(os.Stderr, "Error: too many arguments")