Skip to content

Commit

Permalink
Fix pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
theojulienne committed Sep 25, 2014
1 parent 381dbf6 commit ce3e7fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ wpa_ctl.SaveConfiguration()
for {
event := <- wpa_ctl.EventChannel
//log.Println(event)
switch event.name {
switch event.Name {
case "CTRL-EVENT-DISCONNECTED":
log.Println("Disconnected")
case "CTRL-EVENT-CONNECTED":
Expand Down
8 changes: 4 additions & 4 deletions wpactl/wpactl.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type WPAController struct {
}

type WPAEvent struct {
name string
arguments map[string]string
Name string
Arguments map[string]string
}

type WPANetwork struct {
Expand Down Expand Up @@ -94,11 +94,11 @@ func (c *WPAController) Initialise() (error) {
continue
}

event := WPAEvent{ name: parts[0][3:], arguments: make(map[string]string) }
event := WPAEvent{ Name: parts[0][3:], Arguments: make(map[string]string) }
for _,record := range parts[1:] {
if strings.Index(record, "=") != -1 {
nvs := strings.SplitN(record, "=", 2)
event.arguments[nvs[0]] = nvs[1]
event.Arguments[nvs[0]] = nvs[1]
}
}

Expand Down

0 comments on commit ce3e7fe

Please sign in to comment.