Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcc: cast reader explicitly #34

Merged
merged 1 commit into from
Mar 22, 2017
Merged

bcc: cast reader explicitly #34

merged 1 commit into from
Mar 22, 2017

Conversation

iaguis
Copy link
Collaborator

@iaguis iaguis commented Mar 22, 2017

Newer versions of go (1.8+) are more strict about this, so the
compilation failed:

github.com/iovisor/gobpf/bcc
# github.com/iovisor/gobpf/bcc
bcc/perf.go:131: cannot use reader (type unsafe.Pointer) as type *C.struct_perf_reader in argument to func literal

Cast it explicitly.

Newer versions of go (1.8+) are more strict about this, so the
compilation failed:

```
github.com/iovisor/gobpf/bcc
bcc/perf.go:131: cannot use reader (type unsafe.Pointer) as type *C.struct_perf_reader in argument to func literal
```

Cast it explicitly.
@schu schu merged commit db0602e into iovisor:master Mar 22, 2017
@schu schu deleted the iaguis/cast branch March 22, 2017 11:39
@schu
Copy link
Collaborator

schu commented Mar 22, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants