diff options
author | dscho <dscho> | 2004-02-04 07:59:03 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-02-04 07:59:03 +0000 |
commit | 50a80e7304cea25104cec215da7c061a4998e6bd (patch) | |
tree | 0932fe5b648cea1bf6b2b37140addf41ca618f16 /examples/simple15.c | |
parent | 2fbf23c17ffbc03c5a4d4aa1bda55586e8f41a8e (diff) | |
download | libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.tar.gz libtdevnc-50a80e7304cea25104cec215da7c061a4998e6bd.zip |
make examples g++ compileable, thanks to Juan Jose Costello
Diffstat (limited to 'examples/simple15.c')
-rw-r--r-- | examples/simple15.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple15.c b/examples/simple15.c index 12583ba..faff4f7 100644 --- a/examples/simple15.c +++ b/examples/simple15.c @@ -10,7 +10,7 @@ int main(int argc,char** argv) rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,5,3,2); - server->frameBuffer=malloc(400*300*2); + server->frameBuffer=(char*)malloc(400*300*2); f=(uint16_t*)server->frameBuffer; for(j=0;j<300;j++) for(i=0;i<400;i++) |