Clean up typos and formatting.

pull/585/merge
Christopher Young 2017-04-19 15:57:25 -04:00
rodzic 2645f98293
commit fe7dc97c19
10 zmienionych plików z 13 dodań i 15 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.
@ -335,7 +335,7 @@ func handleSettingsSetRequest(w http.ResponseWriter, r *http.Request) {
err = err + "Invalid IP: " + ip + ". "
}
}
if err != "" {
if err != "" {
log.Printf("handleSettingsSetRequest:StaticIps: %s\n", err)
continue
}

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.
@ -63,11 +63,10 @@ var messageQueue chan networkMessage
var outSockets map[string]networkConnection
var dhcpLeases map[string]string
var pingResponse map[string]time.Time // Last time an IP responded to an "echo" response.
var netMutex *sync.Mutex // netMutex needs to be locked before accessing dhcpLeases, pingResponse, and outSockets and calling isSleeping() and isThrottled().
var netMutex *sync.Mutex // netMutex needs to be locked before accessing dhcpLeases, pingResponse, and outSockets and calling isSleeping() and isThrottled().
var totalNetworkMessagesSent uint32
const (
NETWORK_GDL90_STANDARD = 1
NETWORK_AHRS_FFSIM = 2
@ -116,14 +115,13 @@ func getDHCPLeases() (map[string]string, error) {
}
}
// Add IP's set through the settings page
// Add IP's set through the settings page
if globalSettings.StaticIps != nil {
for _, ip := range globalSettings.StaticIps {
ret[ip] = ""
}
}
// Added the ability to have static IP hosts stored in /etc/stratux-static-hosts.conf
dat2, err := ioutil.ReadFile(extra_hosts_file)

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2016 uAvionix
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.

Wyświetl plik

@ -1,6 +1,6 @@
/*
Copyright (c) 2015-2016 Christopher Young
Distributable under the terms of The "BSD New"" License
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.