forget to add.

This commit is contained in:
WAKAYAMA shirou 2014-12-31 22:47:22 +09:00
parent b0c9f81246
commit 64f1a93c00
2 changed files with 13 additions and 14 deletions

View File

@ -6,23 +6,23 @@
package host
const (
sizeofPtr = 0x8
sizeofShort = 0x2
sizeofInt = 0x4
sizeofLong = 0x8
sizeofLongLong = 0x8
sizeofPtr = 0x8
sizeofShort = 0x2
sizeofInt = 0x4
sizeofLong = 0x8
sizeofLongLong = 0x8
)
type (
_C_short int16
_C_int int32
_C_long int64
_C_long_long int64
_C_short int16
_C_int int32
_C_long int64
_C_long_long int64
)
type Utmp struct {
Line [8]int8
Name [16]int8
Host [16]int8
Time int32
Line [8]int8
Name [16]int8
Host [16]int8
Time int32
}

View File

@ -33,7 +33,6 @@ func TestUsers(t *testing.T) {
}
empty := UserStat{}
for _, u := range v {
fmt.Println(u)
if u == empty {
t.Errorf("Could not Users %v", v)
}