// Copyright 2009 The go9p Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"flag"
	"log"

	"github.com/lionkov/go9p/p/srv/ufs"
	"github.com/lionkov/go9p/p/clnt"
)

var (
	debug = flag.Int("d", 0, "print debug messages")
	addr = flag.String("addr", ":5640", "network address")
)

func main() {
	flag.Parse()
	ufs := new(ufs.Ufs)
	ufs.Dotu = true
	ufs.Id = "ufs"
	ufs.Debuglevel = *debug
	ufs.Start(ufs)

	err := ufs.StartNetListener("tcp", *addr)
	if err != nil {
		log.Println(err)
	}
}

// Copyright 2009 The go9p Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"flag"
	"log"

	"github.com/lionkov/go9p/p/srv/ufs"
)

var (
	debug = flag.Int("d", 0, "print debug messages")
	addr = flag.String("addr", ":5640", "network address")
)

func main() {
	flag.Parse()
	ufs := new(ufs.Ufs)
	ufs.Dotu = true
	ufs.Id = "ufs"
	ufs.Debuglevel = *debug
	ufs.Start(ufs)

	err := ufs.StartNetListener("tcp", *addr)
	if err != nil {
		log.Println(err)
	}
}

Fix an error that made it not go-buildable.
Fix an error that made it not go-buildable.

Signed-off-by: Ronald G. Minnich <f569d0af9a3481c4007b95c7180d6c41009f2513@gmail.com>
