-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from weaveworks/arm-build
Make Scope build on arm
- Loading branch information
Showing
3 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// +build !arm | ||
|
||
package host | ||
|
||
func charsToString(ca [65]int8) string { | ||
s := make([]byte, len(ca)) | ||
var lens int | ||
for ; lens < len(ca); lens++ { | ||
if ca[lens] == 0 { | ||
break | ||
} | ||
s[lens] = uint8(ca[lens]) | ||
} | ||
return string(s[0:lens]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package host | ||
|
||
func charsToString(ca [65]uint8) string { | ||
s := make([]byte, len(ca)) | ||
var lens int | ||
for ; lens < len(ca); lens++ { | ||
if ca[lens] == 0 { | ||
break | ||
} | ||
s[lens] = uint8(ca[lens]) | ||
} | ||
return string(s[0:lens]) | ||
} |