=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/games/xskat", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for xskat-4.0 --- skat.o --- --- ramsch.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DDEFAULT_LANGUAGE=\"english\" -DDEFAULT_IRC_SERVER=\"irc.fu-berlin.de\" -I/opt/pkg/include -c ramsch.c --- skat.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -DDEFAULT_LANGUAGE=\"english\" -DDEFAULT_IRC_SERVER=\"irc.fu-berlin.de\" -I/opt/pkg/include -c skat.c --- ramsch.o --- ramsch.c: In function 'start_ramsch': ramsch.c:31:3: error: too many arguments to function 'save_skat'; expected 0, have 1 31 | save_skat(1); | ^~~~~~~~~ ~ In file included from ramsch.c:23: defs.h:160:6: note: declared here 160 | VOID save_skat(); | ^~~~~~~~~ ramsch.c:33:3: error: too many arguments to function 'remmark'; expected 0, have 1 33 | remmark(0); | ^~~~~~~ ~ defs.h:374:6: note: declared here 374 | VOID remmark(); | ^~~~~~~ ramsch.c: In function 'init_ramsch': ramsch.c:51:3: error: too many arguments to function 'save_skat'; expected 0, have 1 51 | save_skat(0); | ^~~~~~~~~ ~ defs.h:160:6: note: declared here 160 | VOID save_skat(); | ^~~~~~~~~ ramsch.c:55:5: error: too many arguments to function 'initscr'; expected 0, have 2 55 | initscr(sn,1); | ^~~~~~~ ~~ defs.h:378:6: note: declared here 378 | VOID initscr(); | ^~~~~~~ ramsch.c: In function 'sicher': ramsch.c:184:5: warning: old-style function definition [-Wold-style-definition] 184 | int sicher(fb,pc,le) | ^~~~~~ ramsch.c:186:1: error: number of arguments doesn't match prototype 186 | { | ^ defs.h:114:5: error: prototype declaration 114 | int sicher(); | ^~~~~~ ramsch.c:191:14: error: too many arguments to function 'left'; expected 0, have 1 191 | if (hatnfb[left(ausspl+vmh)][fb]==1 && hatnfb[right(ausspl+vmh)][fb]==1) { | ^~~~ ~~~~~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:191:49: error: too many arguments to function 'right'; expected 0, have 1 191 | if (hatnfb[left(ausspl+vmh)][fb]==1 && hatnfb[right(ausspl+vmh)][fb]==1) { | ^~~~~ ~~~~~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ ramsch.c: In function 'moeglklein': ramsch.c:233:17: error: too many arguments to function 'left'; expected 0, have 1 233 | hatnfb[left(ausspl)][fb]!=1 || | ^~~~ ~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:234:17: error: too many arguments to function 'right'; expected 0, have 1 234 | hatnfb[right(ausspl)][fb]!=1); | ^~~~~ ~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ ramsch.c:236:17: error: too many arguments to function 'left'; expected 0, have 1 236 | hatnfb[left(ausspl)][fp]!=1 || | ^~~~ ~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:237:17: error: too many arguments to function 'right'; expected 0, have 1 237 | hatnfb[right(ausspl)][fp]!=1); | ^~~~~ ~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ ramsch.c: In function 'moegldrunter': ramsch.c:284:6: warning: old-style function definition [-Wold-style-definition] 284 | VOID moegldrunter(sc) | ^~~~~~~~~~~~ ramsch.c:286:1: error: number of arguments doesn't match prototype 286 | { | ^ defs.h:117:6: error: prototype declaration 117 | VOID moegldrunter(); | ^~~~~~~~~~~~ ramsch.c:297:9: error: too many arguments to function 'higher'; expected 0, have 2 297 | if (higher(sc,cards[possi[pc]])) { | ^~~~~~ ~~ defs.h:173:5: note: declared here 173 | int higher(); | ^~~~~~ ramsch.c:305:18: error: too many arguments to function 'sicher'; expected 0, have 3 305 | if (!sicher(cards[possi[pc]]>>3,&pcl,&le)) { | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ramsch.c:184:5: note: declared here 184 | int sicher(fb,pc,le) | ^~~~~~ ramsch.c:314:18: error: too many arguments to function 'sicher'; expected 0, have 3 314 | if (!sicher(cards[possi[playcd]]>>3,&pcl,&le)) { | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ ramsch.c:184:5: note: declared here 184 | int sicher(fb,pc,le) | ^~~~~~ ramsch.c: In function 'ggdurchmarsch': ramsch.c:346:31: error: too many arguments to function 'higher'; expected 0, have 2 346 | (vmh==2 && stich!=1 && !higher(stcd[0],stcd[1]))) return 0; | ^~~~~~ ~~~~~~~ defs.h:173:5: note: declared here 173 | int higher(); | ^~~~~~ ramsch.c:357:17: error: too many arguments to function 'left'; expected 0, have 1 357 | ((hatnfb[left(ausspl)][4]==1 && | ^~~~ ~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:358:17: error: too many arguments to function 'right'; expected 0, have 1 358 | hatnfb[right(ausspl)][4]==1) || | ^~~~~ ~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ ramsch.c:366:18: error: too many arguments to function 'higher'; expected 0, have 2 366 | if (vmh==2 && !higher(stcd[0],stcd[1])) { | ^~~~~~ ~~~~~~~ defs.h:173:5: note: declared here 173 | int higher(); | ^~~~~~ ramsch.c:370:10: error: too many arguments to function 'higher'; expected 0, have 2 370 | if (!higher(stcd[h],cards[possi[i]])) { | ^~~~~~ ~~~~~~~ defs.h:173:5: note: declared here 173 | int higher(); | ^~~~~~ ramsch.c: In function 'm_bvr': ramsch.c:395:10: error: too many arguments to function 'sicher'; expected 0, have 3 395 | if (!sicher(fb,&pc,&le)) { | ^~~~~~ ~~ ramsch.c:184:5: note: declared here 184 | int sicher(fb,pc,le) | ^~~~~~ ramsch.c: In function 'm_bmr': ramsch.c:421:3: error: too many arguments to function 'moegldrunter'; expected 0, have 1 421 | moegldrunter(stcd[0]); | ^~~~~~~~~~~~ ~~~~~~~ ramsch.c:284:6: note: declared here 284 | VOID moegldrunter(sc) | ^~~~~~~~~~~~ ramsch.c: In function 'm_bhr': ramsch.c:428:16: error: too many arguments to function 'higher'; expected 0, have 2 428 | moegldrunter(higher(stcd[0],stcd[1])?stcd[0]:stcd[1]); | ^~~~~~ ~~~~~~~ defs.h:173:5: note: declared here 173 | int higher(); | ^~~~~~ ramsch.c:428:3: error: too many arguments to function 'moegldrunter'; expected 0, have 1 428 | moegldrunter(higher(stcd[0],stcd[1])?stcd[0]:stcd[1]); | ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ramsch.c:284:6: note: declared here 284 | VOID moegldrunter(sc) | ^~~~~~~~~~~~ ramsch.c: In function 'unsich_fb': ramsch.c:439:5: warning: old-style function definition [-Wold-style-definition] 439 | int unsich_fb(sn,s) | ^~~~~~~~~ ramsch.c:441:1: error: number of arguments doesn't match prototype 441 | { | ^ defs.h:123:5: error: prototype declaration 123 | int unsich_fb(); | ^~~~~~~~~ ramsch.c:450:10: error: too many arguments to function 'sicher'; expected 0, have 3 450 | if (!sicher(fb,&pc,&le)) { | ^~~~~~ ~~ ramsch.c:184:5: note: declared here 184 | int sicher(fb,pc,le) | ^~~~~~ ramsch.c: In function 'comp_sramsch': ramsch.c:458:5: warning: old-style function definition [-Wold-style-definition] 458 | int comp_sramsch(sn) | ^~~~~~~~~~~~ ramsch.c:460:1: error: number of arguments doesn't match prototype 460 | { | ^ defs.h:124:5: error: prototype declaration 124 | int comp_sramsch(); | ^~~~~~~~~~~~ ramsch.c:465:5: error: too many arguments to function 'unsich_fb'; expected 0, have 2 465 | n=unsich_fb(sn,s); | ^~~~~~~~~ ~~ ramsch.c:439:5: note: declared here 439 | int unsich_fb(sn,s) | ^~~~~~~~~ ramsch.c:474:14: error: too many arguments to function 'di_verdoppelt'; expected 0, have 2 474 | return di_verdoppelt(0,1); | ^~~~~~~~~~~~~ ~ defs.h:289:5: note: declared here 289 | int di_verdoppelt(); | ^~~~~~~~~~~~~ --- skat.o --- skat.c: In function 'left': --- ramsch.o --- ramsch.c:478:13: error: too many arguments to function 'left'; expected 0, have 1 478 | if (sn==left(ausspl)) { | ^~~~ ~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:482:16: error: too many arguments to function 'di_verdoppelt'; expected 0, have 2 482 | return di_verdoppelt(0,0); | ^~~~~~~~~~~~~ ~ defs.h:289:5: note: declared here 289 | int di_verdoppelt(); | ^~~~~~~~~~~~~ ramsch.c:489:14: error: too many arguments to function 'di_verdoppelt'; expected 0, have 2 489 | return di_verdoppelt(0,0); | ^~~~~~~~~~~~~ ~ defs.h:289:5: note: declared here 289 | int di_verdoppelt(); | ^~~~~~~~~~~~~ --- skat.o --- skat.c:33:5: warning: old-style function definition [-Wold-style-definition] 33 | int left(s) | ^~~~ --- ramsch.o --- ramsch.c:498:30: error: too many arguments to function 'right'; expected 0, have 1 498 | if (((vmh && prot2.verdopp[right(ausspl+vmh)]!=1) || | ^~~~~ ~~~~~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ --- skat.o --- skat.c:35:1: error: number of arguments doesn't match prototype 35 | { | ^ In file included from skat.c:29: defs.h:128:5: error: prototype declaration 128 | int left(); | ^~~~ --- ramsch.o --- ramsch.c:499:33: error: too many arguments to function 'right'; expected 0, have 1 499 | (vmh==2 && prot2.verdopp[right(ausspl+vmh)]==1 && | ^~~~~ ~~~~~~~~~~ defs.h:129:5: note: declared here 129 | int right(); | ^~~~~ ramsch.c:500:23: error: too many arguments to function 'left'; expected 0, have 1 500 | prot2.verdopp[left(ausspl+vmh)]!=1)) && | ^~~~ ~~~~~~~~~~ defs.h:128:5: note: declared here 128 | int left(); | ^~~~ ramsch.c:509:9: error: too many arguments to function 'swap'; expected 0, have 2 509 | swap(&cards[30+i],&cards[10*sn+j]); | ^~~~ ~~~~~~~~~~~~ defs.h:131:6: note: declared here 131 | VOID swap(); | ^~~~ --- skat.o --- skat.c: In function 'right': skat.c:39:5: warning: old-style function definition [-Wold-style-definition] 39 | int right(s) | ^~~~~ skat.c:41:1: error: number of arguments doesn't match prototype 41 | { | ^ defs.h:129:5: error: prototype declaration 129 | int right(); | ^~~~~ skat.c: In function 'iscomp': skat.c:45:5: warning: old-style function definition [-Wold-style-definition] 45 | int iscomp(s) | ^~~~~~ skat.c:47:1: error: number of arguments doesn't match prototype 47 | { | ^ defs.h:130:5: error: prototype declaration 130 | int iscomp(); | ^~~~~~ --- ramsch.o --- ramsch.c:515:11: error: too many arguments to function 'swap'; expected 0, have 2 515 | swap(&cards[30+i],&cards[10*sn+j]); | ^~~~ ~~~~~~~~~~~~ defs.h:131:6: note: declared here 131 | VOID swap(); | ^~~~ --- skat.o --- skat.c: In function 'swap': skat.c:51:6: warning: old-style function definition [-Wold-style-definition] 51 | VOID swap(i,j) | ^~~~ skat.c:53:1: error: number of arguments doesn't match prototype 53 | { | ^ defs.h:131:6: error: prototype declaration 131 | VOID swap(); | ^~~~ skat.c: In function 'setrnd': skat.c:61:6: warning: old-style function definition [-Wold-style-definition] 61 | VOID setrnd(s,v) | ^~~~~~ skat.c:63:1: error: number of arguments doesn't match prototype 63 | { | ^ defs.h:132:6: error: prototype declaration 132 | VOID setrnd(); | ^~~~~~ --- ramsch.o --- ramsch.c:551:9: error: too many arguments to function 'drueck'; expected 0, have 3 551 | drueck(i,2,&dum); | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ --- skat.o --- skat.c: In function 'rndval': skat.c:67:5: warning: old-style function definition [-Wold-style-definition] 67 | int rndval(s,m) | ^~~~~~ skat.c:70:1: error: number of arguments doesn't match prototype 70 | { | ^ defs.h:133:5: error: prototype declaration 133 | int rndval(); | ^~~~~~ --- ramsch.o --- ramsch.c:562:13: error: too many arguments to function 'drueck'; expected 0, have 3 562 | drueck(i,1,&dum); | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ ramsch.c:566:53: error: too many arguments to function 'drueck'; expected 0, have 3 566 | if (inhand[i][SIEBEN] || inhand[i][ACHT]) drueck(i,1,&dum); | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ ramsch.c:567:16: error: too many arguments to function 'drueck'; expected 0, have 3 567 | else drueck(i,2,&dum); | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ --- skat.o --- skat.c: In function 'rnd': skat.c:79:5: warning: old-style function definition [-Wold-style-definition] 79 | int rnd(m) | ^~~ skat.c:81:1: error: number of arguments doesn't match prototype 81 | { | ^ defs.h:134:5: error: prototype declaration 134 | int rnd(); | ^~~ skat.c:82:10: error: too many arguments to function 'rndval'; expected 0, have 2 82 | return rndval(&seed[1],m); | ^~~~~~ ~~~~~~~~ skat.c:67:5: note: declared here 67 | int rndval(s,m) | ^~~~~~ skat.c: In function 'synerr': skat.c:85:6: warning: old-style function definition [-Wold-style-definition] 85 | VOID synerr(f,s) | ^~~~~~ skat.c:88:1: error: number of arguments doesn't match prototype 88 | { | ^ defs.h:135:6: error: prototype declaration 135 | VOID synerr(); | ^~~~~~ --- ramsch.o --- ramsch.c:572:18: error: too many arguments to function 'drueck'; expected 0, have 3 572 | case 2:drueck(i,1,&dum);break; | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ ramsch.c:573:19: error: too many arguments to function 'drueck'; expected 0, have 3 573 | default:drueck(i,2,&dum);break; | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ ramsch.c:577:11: error: too many arguments to function 'drueck'; expected 0, have 3 577 | drueck(i,2,&dum); | ^~~~~~ ~ defs.h:150:6: note: declared here 150 | VOID drueck(); | ^~~~~~ ramsch.c:583:7: error: too many arguments to function 'unsich_fb'; expected 0, have 2 583 | n=unsich_fb(sn,s); | ^~~~~~~~~ ~~ ramsch.c:439:5: note: declared here 439 | int unsich_fb(sn,s) | ^~~~~~~~~ ramsch.c:588:14: error: too many arguments to function 'di_verdoppelt'; expected 0, have 2 588 | return di_verdoppelt(0,1); | ^~~~~~~~~~~~~ ~ defs.h:289:5: note: declared here 289 | int di_verdoppelt(); | ^~~~~~~~~~~~~ --- skat.o --- skat.c: In function 'get_game': skat.c:131:7: error: too many arguments to function 'exitus'; expected 0, have 1 131 | exitus(1); | ^~~~~~ ~ defs.h:345:6: note: declared here 345 | VOID exitus(); | ^~~~~~ skat.c:139:7: error: too many arguments to function 'synerr'; expected 0, have 2 139 | synerr(f,""); | ^~~~~~ ~ skat.c:85:6: note: declared here 85 | VOID synerr(f,s) | ^~~~~~ skat.c:150:9: error: too many arguments to function 'synerr'; expected 0, have 2 150 | synerr(f,s); | ^~~~~~ ~ skat.c:85:6: note: declared here 85 | VOID synerr(f,s) | ^~~~~~ skat.c:161:9: error: too many arguments to function 'synerr'; expected 0, have 2 161 | synerr(f,s); | ^~~~~~ ~ skat.c:85:6: note: declared here 85 | VOID synerr(f,s) | ^~~~~~ skat.c:168:9: error: too many arguments to function 'synerr'; expected 0, have 2 168 | synerr(f,s); | ^~~~~~ ~ skat.c:85:6: note: declared here 85 | VOID synerr(f,s) | ^~~~~~ --- ramsch.o --- ramsch.c: In function 'testgrandhand': --- skat.o --- skat.c:180:11: error: too many arguments to function 'synerr'; expected 0, have 2 180 | synerr(f,s); | ^~~~~~ ~ skat.c:85:6: note: declared here 85 | VOID synerr(f,s) | ^~~~~~ --- ramsch.o --- ramsch.c:667:5: warning: old-style function definition [-Wold-style-definition] 667 | int testgrandhand(sn) | ^~~~~~~~~~~~~ ramsch.c:669:1: error: number of arguments doesn't match prototype 669 | { | ^ defs.h:127:5: error: prototype declaration 127 | int testgrandhand(); | ^~~~~~~~~~~~~ --- skat.o --- skat.c:194:9: error: too many arguments to function 'setrnd'; expected 0, have 2 194 | setrnd(&seed[0],savseed=num); | ^~~~~~ ~~~~~~~~ skat.c:61:6: note: declared here 61 | VOID setrnd(s,v) | ^~~~~~ skat.c:200:30: error: too many arguments to function 'rndval'; expected 0, have 2 200 | for (i=0;i<32;i++) rndval(&seed[0],0); | ^~~~~~ ~~~~~~~~ skat.c:67:5: note: declared here 67 | int rndval(s,m) | ^~~~~~ --- ramsch.o --- ramsch.c:680:3: error: too many arguments to function 'calc_inhand'; expected 0, have 1 680 | calc_inhand(sn); | ^~~~~~~~~~~ ~~ defs.h:156:6: note: declared here 156 | VOID calc_inhand(); | ^~~~~~~~~~~ --- skat.o --- skat.c:205:27: error: too many arguments to function 'left'; expected 0, have 1 205 | hoerer=ausspl=left(geber); | ^~~~ ~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:206:19: error: too many arguments to function 'right'; expected 0, have 1 206 | sager=right(geber); | ^~~~~ ~~~~~ skat.c:39:5: note: declared here 39 | int right(s) | ^~~~~ --- ramsch.o --- ramsch.c:684:11: error: too many arguments to function 'testgrand'; expected 0, have 3 684 | testgrand(bb,b,sn==hoerer)); | ^~~~~~~~~ ~~ defs.h:155:5: note: declared here 155 | int testgrand(); | ^~~~~~~~~ --- skat.o --- skat.c: In function 'mischen': skat.c:266:26: error: too many arguments to function 'swap'; expected 0, have 2 266 | for (i=0;i<10;i++) swap(&cards[i],&cards[10+i]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:267:26: error: too many arguments to function 'swap'; expected 0, have 2 267 | for (i=0;i<10;i++) swap(&cards[10+i],&cards[20+i]); | ^~~~ ~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:271:26: error: too many arguments to function 'swap'; expected 0, have 2 271 | for (i=0;i<10;i++) swap(&cards[i],&cards[20+i]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:272:26: error: too many arguments to function 'swap'; expected 0, have 2 272 | for (i=0;i<10;i++) swap(&cards[20+i],&cards[10+i]); | ^~~~ ~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:279:48: error: too many arguments to function 'rndval'; expected 0, have 2 279 | for (i=0;i<32;i++) swap(&cards[i],&cards[rndval(&seed[0],31)]); | ^~~~~~ ~~~~~~~~ skat.c:67:5: note: declared here 67 | int rndval(s,m) | ^~~~~~ skat.c:279:26: error: too many arguments to function 'swap'; expected 0, have 2 279 | for (i=0;i<32;i++) swap(&cards[i],&cards[rndval(&seed[0],31)]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:280:26: error: too many arguments to function 'swap'; expected 0, have 2 280 | for (i=0;i<10;i++) swap(&cards[geber*10+i],&cards[i]); | ^~~~ ~~~~~~~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:281:26: error: too many arguments to function 'swap'; expected 0, have 2 281 | for (i=0;i<10;i++) swap(&cards[hoerer*10+i],&cards[geber==1?i:10+i]); | ^~~~ ~~~~~~~~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:283:28: error: too many arguments to function 'swap'; expected 0, have 2 283 | for (i=0;i<10;i++) swap(&cards[i],&cards[10+i]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:284:28: error: too many arguments to function 'swap'; expected 0, have 2 284 | for (i=0;i<10;i++) swap(&cards[10+i],&cards[20+i]); | ^~~~ ~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:287:28: error: too many arguments to function 'swap'; expected 0, have 2 287 | for (i=0;i<10;i++) swap(&cards[i],&cards[20+i]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:288:28: error: too many arguments to function 'swap'; expected 0, have 2 288 | for (i=0;i<10;i++) swap(&cards[20+i],&cards[10+i]); | ^~~~ ~~~~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:295:3: error: too many arguments to function 'setrnd'; expected 0, have 2 295 | setrnd(&seed[1],seed[0]); | ^~~~~~ ~~~~~~~~ skat.c:61:6: note: declared here 61 | VOID setrnd(s,v) | ^~~~~~ skat.c: In function 'lower': skat.c:306:5: warning: old-style function definition [-Wold-style-definition] 306 | int lower(c1,c2,n) | ^~~~~ skat.c:308:1: error: number of arguments doesn't match prototype 308 | { | ^ defs.h:139:5: error: prototype declaration 139 | int lower(); | ^~~~~ skat.c: In function 'sort': skat.c:338:6: warning: old-style function definition [-Wold-style-definition] 338 | VOID sort(sn) | ^~~~ skat.c:340:1: error: number of arguments doesn't match prototype 340 | { | ^ defs.h:140:6: error: prototype declaration 140 | VOID sort(); | ^~~~ skat.c:395:13: error: too many arguments to function 'lower'; expected 0, have 3 395 | lower(cards[i],cards[j],sort2[sn])) && | ^~~~~ ~~~~~~~~ skat.c:306:5: note: declared here 306 | int lower(c1,c2,n) | ^~~~~ skat.c:397:9: error: too many arguments to function 'swap'; expected 0, have 2 397 | swap(&cards[i],&cards[j]); | ^~~~ ~~~~~~~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c: In function 'calc_rw': skat.c:407:6: warning: old-style function definition [-Wold-style-definition] 407 | VOID calc_rw(s) | ^~~~~~~ skat.c:409:1: error: number of arguments doesn't match prototype 409 | { | ^ defs.h:141:6: error: prototype declaration 141 | VOID calc_rw(); | ^~~~~~~ skat.c:464:18: error: too many arguments to function 'testnull'; expected 0, have 1 464 | if (!maxrw[s]) testnull(s); | ^~~~~~~~ ~ defs.h:92:6: note: declared here 92 | VOID testnull(); | ^~~~~~~~ skat.c:486:16: error: too many arguments to function 'rnd'; expected 0, have 1 486 | if (stg<0 && rnd(3)<-stg) { | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:488:30: error: too many arguments to function 'rnd'; expected 0, have 1 488 | else if (maxrw[s]==17 || rnd(7)<-stg) maxrw[s]=2*rwert[tr]; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c: In function 'do_geben': skat.c:504:28: error: too many arguments to function 'calc_desk'; expected 0, have 1 504 | for (sn=0;sn1 || iscomp(spieler))) revolutionscr(); | ^~~~~~ ~~~~~~~ skat.c:45:5: note: declared here 45 | int iscomp(s) | ^~~~~~ skat.c: In function 'spielphase': skat.c:1370:7: error: too many arguments to function 'di_info'; expected 0, have 2 1370 | di_info(sn,-2); | ^~~~~~~ ~~ defs.h:268:6: note: declared here 268 | VOID di_info(); | ^~~~~~~ skat.c:1371:7: error: too many arguments to function 'calc_desk'; expected 0, have 1 1371 | calc_desk(sn); | ^~~~~~~~~ ~~ defs.h:337:6: note: declared here 337 | VOID calc_desk(); | ^~~~~~~~~ skat.c:1378:5: error: too many arguments to function 'sort'; expected 0, have 1 1378 | sort(sn); | ^~~~ ~~ skat.c:338:6: note: declared here 338 | VOID sort(sn) | ^~~~ skat.c:1380:28: error: too many arguments to function 'initscr'; expected 0, have 2 1380 | for (sn=0;sn3+rnd(1); | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c: In function 'gewinnstich': skat.c:2203:5: warning: old-style function definition [-Wold-style-definition] 2203 | int gewinnstich(f) | ^~~~~~~~~~~ skat.c:2205:1: error: number of arguments doesn't match prototype 2205 | { | ^ defs.h:194:5: error: prototype declaration 194 | int gewinnstich(); | ^~~~~~~~~~~ skat.c:2224:6: error: too many arguments to function 'higher'; expected 0, have 2 2224 | p=!higher(stcd[0],stcd[1]); | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c:2228:10: error: too many arguments to function 'higher'; expected 0, have 2 2228 | if (!higher(stcd[p],ci) || g) { | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c: In function 'uebernehmen': skat.c:2242:5: warning: old-style function definition [-Wold-style-definition] 2242 | int uebernehmen(p,h,n) | ^~~~~~~~~~~ skat.c:2244:1: error: number of arguments doesn't match prototype 2244 | { | ^ defs.h:195:5: error: prototype declaration 195 | int uebernehmen(); | ^~~~~~~~~~~ skat.c:2248:31: error: too many arguments to function 'left'; expected 0, have 1 2248 | if (is && vmh==1 && !hatnfb[left(spieler)][trumpf] && | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2251:15: error: too many arguments to function 'left'; expected 0, have 1 2251 | hatnfb[left(spieler)][stcd[0]>>3])) h=0; | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2253:3: error: too many arguments to function 'calc_inhand'; expected 0, have 1 2253 | calc_inhand((ausspl+vmh)%3); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~ skat.c:845:6: note: declared here 845 | VOID calc_inhand(sn) | ^~~~~~~~~~~ skat.c:2256:10: error: too many arguments to function 'higher'; expected 0, have 2 2256 | if (!higher(stcd[p],ci)) { | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c:2263:13: error: too many arguments to function 'calc_high'; expected 0, have 2 2263 | calc_high(1,1); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c:2294:21: error: too many arguments to function 'zweihoechste'; expected 0, have 1 2294 | if (!h && zweihoechste(ci)) j=i+1; | ^~~~~~~~~~~~ ~~ skat.c:2134:5: note: declared here 2134 | int zweihoechste(ci) | ^~~~~~~~~~~~ skat.c:2300:24: error: too many arguments to function 'zweihoechste'; expected 0, have 1 2300 | if ((h || !zweihoechste(cj)) && ((wi4 && !hatnfb[left(spieler)][trumpf] && | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2317:17: error: too many arguments to function 'left'; expected 0, have 1 2317 | hatnfb[left(spieler)][stcd[0]>>3])) j=0; | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c: In function 'schmieren': skat.c:2330:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2330 | calc_high(2,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c: In function 'einstechen': skat.c:2355:29: error: too many arguments to function 'uebernehmen'; expected 0, have 3 2355 | if (!cardw[stcd[0]&7] || !uebernehmen(0,0,0)) return 0; | ^~~~~~~~~~~ ~ skat.c:2242:5: note: declared here 2242 | int uebernehmen(p,h,n) | ^~~~~~~~~~~ skat.c: In function 'niedrighoch': skat.c:2362:5: warning: old-style function definition [-Wold-style-definition] 2362 | int niedrighoch(f) | ^~~~~~~~~~~ skat.c:2364:1: error: number of arguments doesn't match prototype 2364 | { | ^ defs.h:198:5: error: prototype declaration 198 | int niedrighoch(); | ^~~~~~~~~~~ skat.c:2370:5: error: too many arguments to function 'calc_high'; expected 0, have 2 2370 | calc_high(1,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c: In function 'ueberdoerfer': skat.c:2392:17: error: too many arguments to function 'left'; expected 0, have 1 2392 | (!hatnfb[left(spieler)][trumpf] || | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2393:17: error: too many arguments to function 'right'; expected 0, have 1 2393 | !hatnfb[right(spieler)][trumpf])) | ^~~~~ ~~~~~~~ skat.c:39:5: note: declared here 39 | int right(s) | ^~~~~ skat.c:2395:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2395 | calc_high(1,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c: In function 'bubeausspielen': skat.c:2413:3: error: too many arguments to function 'calc_inhand'; expected 0, have 1 2413 | calc_inhand(spieler); | ^~~~~~~~~~~ ~~~~~~~ skat.c:845:6: note: declared here 845 | VOID calc_inhand(sn) | ^~~~~~~~~~~ skat.c:2415:7: error: too many arguments to function 'rnd'; expected 0, have 1 2415 | c=rnd(1)?1:rnd(1)?2:3; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2415:16: error: too many arguments to function 'rnd'; expected 0, have 1 2415 | c=rnd(1)?1:rnd(1)?2:3; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2418:7: error: too many arguments to function 'rnd'; expected 0, have 1 2418 | c=rnd(1)?3:2; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2421:7: error: too many arguments to function 'rnd'; expected 0, have 1 2421 | c=rnd(7)?3:1; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2424:7: error: too many arguments to function 'rnd'; expected 0, have 1 2424 | c=rnd(1)?2:1; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c: In function 'trumpfausspielen': skat.c:2442:6: error: too many arguments to function 'left'; expected 0, have 1 2442 | g1=left(spieler); | ^~~~ ~~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2443:6: error: too many arguments to function 'right'; expected 0, have 1 2443 | g2=right(spieler); | ^~~~~ ~~~~~~~ skat.c:39:5: note: declared here 39 | int right(s) | ^~~~~ skat.c:2447:9: error: too many arguments to function 'niedrighoch'; expected 0, have 1 2447 | if (niedrighoch(trumpf)) return 1; | ^~~~~~~~~~~ ~~~~~~ skat.c:2362:5: note: declared here 2362 | int niedrighoch(f) | ^~~~~~~~~~~ skat.c:2454:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2454 | calc_high(1,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c:2478:7: error: too many arguments to function 'calc_inhand'; expected 0, have 1 2478 | calc_inhand(spieler); | ^~~~~~~~~~~ ~~~~~~~ skat.c:845:6: note: declared here 845 | VOID calc_inhand(sn) | ^~~~~~~~~~~ skat.c:2508:14: error: too many arguments to function 'niedrighoch'; expected 0, have 1 2508 | else niedrighoch(j); | ^~~~~~~~~~~ ~ skat.c:2362:5: note: declared here 2362 | int niedrighoch(f) | ^~~~~~~~~~~ skat.c: In function 'hochausspielen': skat.c:2520:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2520 | calc_high(2,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c: In function 'schenke': skat.c:2565:41: error: too many arguments to function 'zehnblank'; expected 0, have 1 2565 | if (!wi && !gespcd[(ci&~7)|AS] && zehnblank(ci) && stich<=6) wi+=4; | ^~~~~~~~~ ~~ defs.h:204:5: note: declared here 204 | int zehnblank(); | ^~~~~~~~~ skat.c:2566:41: error: too many arguments to function 'zehnblank'; expected 0, have 1 2566 | if (!wj && !gespcd[(cj&~7)|AS] && zehnblank(cj) && stich<=6) wj+=4; | ^~~~~~~~~ ~~ defs.h:204:5: note: declared here 204 | int zehnblank(); | ^~~~~~~~~ skat.c: In function 'zehnblank': skat.c:2592:5: warning: old-style function definition [-Wold-style-definition] 2592 | int zehnblank(ci) | ^~~~~~~~~ skat.c:2594:1: error: number of arguments doesn't match prototype 2594 | { | ^ defs.h:204:5: error: prototype declaration 204 | int zehnblank(); | ^~~~~~~~~ skat.c: In function 'fabwerfen': skat.c:2625:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2625 | calc_high(1,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c: In function 'abwerfen': skat.c:2679:21: error: too many arguments to function 'zehnblank'; expected 0, have 1 2679 | if (wi<4 && zehnblank(ci) && stich<=7) wi+=wi?2:6; | ^~~~~~~~~ ~~ skat.c:2592:5: note: declared here 2592 | int zehnblank(ci) | ^~~~~~~~~ skat.c:2680:21: error: too many arguments to function 'zehnblank'; expected 0, have 1 2680 | if (wj<4 && zehnblank(cj) && stich<=7) wj+=wj?2:6; | ^~~~~~~~~ ~~ skat.c:2592:5: note: declared here 2592 | int zehnblank(ci) | ^~~~~~~~~ skat.c:2687:25: error: too many arguments to function 'left'; expected 0, have 1 2687 | mi=spieler==left(ausspl)?2:1; | ^~~~ ~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2710:25: error: too many arguments to function 'swap'; expected 0, have 2 2710 | if (h==2) swap(&wi,&wj); | ^~~~ ~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:2717:43: error: too many arguments to function 'left'; expected 0, have 1 2717 | if (as[ci>>3]) wi-=spieler==left(ausspl)?1:-1; | ^~~~ ~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2718:43: error: too many arguments to function 'left'; expected 0, have 1 2718 | if (as[cj>>3]) wj-=spieler==left(ausspl)?1:-1; | ^~~~ ~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2720:26: error: too many arguments to function 'left'; expected 0, have 1 2720 | if (spieler==left(ausspl) || trumpf==4) swap(&wi,&wj); | ^~~~ ~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2720:53: error: too many arguments to function 'swap'; expected 0, have 2 2720 | if (spieler==left(ausspl) || trumpf==4) swap(&wi,&wj); | ^~~~ ~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c:2733:15: error: too many arguments to function 'swap'; expected 0, have 2 2733 | swap(&wi,&wj); | ^~~~ ~~~ skat.c:51:6: note: declared here 51 | VOID swap(i,j) | ^~~~ skat.c: In function 'buttern': skat.c:2765:6: error: too many arguments to function 'left'; expected 0, have 1 2765 | se=left(ausspl); | ^~~~ ~~~~~~ skat.c:33:5: note: declared here 33 | int left(s) | ^~~~ skat.c:2766:22: error: too many arguments to function 'right'; expected 0, have 1 2766 | mi=spieler==ausspl?right(ausspl):ausspl; | ^~~~~ ~~~~~~ skat.c:39:5: note: declared here 39 | int right(s) | ^~~~~ skat.c:2771:3: error: too many arguments to function 'calc_high'; expected 0, have 2 2771 | calc_high(2,0); | ^~~~~~~~~ ~ skat.c:2119:6: note: declared here 2119 | VOID calc_high(f,s) | ^~~~~~~~~ skat.c:2777:34: error: too many arguments to function 'rnd'; expected 0, have 1 2777 | gespcd[3<<3|BUBE]==2 && rnd(1)) || | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2779:9: error: too many arguments to function 'higher'; expected 0, have 2 2779 | higher(stcd[0],high[fb]) || | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c:2786:32: error: too many arguments to function 'rnd'; expected 0, have 1 2786 | (cardw[stcd[0]&7]>4 && rnd(1))) return 0; | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2787:27: error: too many arguments to function 'rnd'; expected 0, have 1 2787 | if (butternok) return rnd(1); | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2788:15: error: too many arguments to function 'rnd'; expected 0, have 1 2788 | butternok=rnd(1); | ^~~ ~ skat.c:79:5: note: declared here 79 | int rnd(m) | ^~~ skat.c:2791:7: error: too many arguments to function 'higher'; expected 0, have 2 2791 | if (higher(stcd[0],high[trumpf]) && higher(stcd[0],high[fb])) return 1; | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c:2791:39: error: too many arguments to function 'higher'; expected 0, have 2 2791 | if (higher(stcd[0],high[trumpf]) && higher(stcd[0],high[fb])) return 1; | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c:2792:7: error: too many arguments to function 'higher'; expected 0, have 2 2792 | if (higher(stcd[0],high[fb]) && !hatnfb[spieler][fb]) { | ^~~~~~ ~~~~~~~ skat.c:1383:5: note: declared here 1383 | int higher(c1,c2) | ^~~~~~ skat.c: In function 'schnippeln': skat.c:2813:5: warning: old-style function definition [-Wold-style-definition] 2813 | int schnippeln(f) | ^~~~~~~~~~ skat.c:2815:1: error: number of arguments doesn't match prototype 2815 | { | ^ defs.h:209:5: error: prototype declaration 209 | int schnippeln(); | ^~~~~~~~~~ skat.c:2841:8: error: too many arguments to function 'higher'; expected 0, have 2 2841 | hi=f?higher(stcd[0],stcd[1])^(spieler==ausspl):cards[possi[j]]