examples/cpkg: fix c-compilation warning

Compiling with `-Wformat-security` resulted in:
```sh
gopy/_examples/cpkg/cpkg.go: In function ‘cpkg_printf’:
gopy/_examples/cpkg/cpkg.go:11:2: warning: format not a string literal and no format arguments [-Wformat-security]
```

This CL is an attempted at fixing that.
This commit is contained in:
Sebastien Binet 2015-08-11 21:12:19 +02:00
parent e2b2b4c610
commit 5c74378c29
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ package cpkg
//#include <string.h>
//#include <stdlib.h>
//void cpkg_printf(const char *str) {
// fprintf(stdout, str);
// fprintf(stdout, "%s", str);
// fflush(stdout);
//}
import "C"