gofmt
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/0369efcb Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/0369efcb Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/0369efcb Branch: refs/heads/mynewt_1_0_0 Commit: 0369efcbe1d44eb19a59b93a71bf66a228bac630 Parents: 4c0c1b1 Author: Christopher Collins <[email protected]> Authored: Sun Feb 5 11:51:48 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Mon Mar 6 13:28:55 2017 -0800 ---------------------------------------------------------------------- newt/pkg/localpackage.go | 2 +- newt/sysinit/sysinit.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/0369efcb/newt/pkg/localpackage.go ---------------------------------------------------------------------- diff --git a/newt/pkg/localpackage.go b/newt/pkg/localpackage.go index 8c935b1..da7ac65 100644 --- a/newt/pkg/localpackage.go +++ b/newt/pkg/localpackage.go @@ -327,7 +327,7 @@ func (pkg *LocalPackage) Load() error { stage, err := strconv.ParseInt(stageStr, 10, 64) if err != nil { return util.NewNewtError(fmt.Sprintf("Parsing pkg %s config: %s", - pkg.FullName(), err.Error())) + pkg.FullName(), err.Error())) } pkg.init[name] = int(stage) } http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/0369efcb/newt/sysinit/sysinit.go ---------------------------------------------------------------------- diff --git a/newt/sysinit/sysinit.go b/newt/sysinit/sysinit.go index ddcc68b..29dc082 100644 --- a/newt/sysinit/sysinit.go +++ b/newt/sysinit/sysinit.go @@ -48,8 +48,8 @@ func buildStageMap(pkgs []*pkg.LocalPackage) map[int][]*initFunc { for name, stage := range p.Init() { initFunc := &initFunc{ stage: stage, - name: name, - pkg: p, + name: name, + pkg: p, } sm[stage] = append(sm[stage], initFunc) } @@ -63,7 +63,7 @@ func writePrototypes(pkgs []*pkg.LocalPackage, w io.Writer) { for _, p := range sorted { init := p.Init() for name, _ := range init { - fmt.Fprintf(w, "void %s(void);\n", name); + fmt.Fprintf(w, "void %s(void);\n", name) } } }
