diff options
author | dscho <dscho> | 2005-05-15 13:57:51 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-05-15 13:57:51 +0000 |
commit | 8bee4eb990273c3654431467ba6618eb916f030a (patch) | |
tree | f3077e1cb12a4cb778047814583fc0b2f26bb7b2 /test/copyrecttest.c | |
parent | be5b1296e4aa4d8a51cd709853408ec0cd7b768b (diff) | |
download | libtdevnc-8bee4eb990273c3654431467ba6618eb916f030a.tar.gz libtdevnc-8bee4eb990273c3654431467ba6618eb916f030a.zip |
ANSIfy, fix some warnings from Linus' sparse
Diffstat (limited to 'test/copyrecttest.c')
-rw-r--r-- | test/copyrecttest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/copyrecttest.c b/test/copyrecttest.c index da036bc..1986f72 100644 --- a/test/copyrecttest.c +++ b/test/copyrecttest.c @@ -1,7 +1,8 @@ +#define _BSD_SOURCE #include <rfb/rfb.h> #include <math.h> -void initBackground(rfbScreenInfoPtr server) +static void initBackground(rfbScreenInfoPtr server) { unsigned int i,j; @@ -16,7 +17,7 @@ void initBackground(rfbScreenInfoPtr server) int main(int argc,char** argv) { int width=400,height=300,w=20,x,y; - double r,phi; + double r,phi=0; rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,width,height,8,3,4); server->frameBuffer=(char*)malloc(width*height*4); |