Make 2004/burley fix more like original
In particular although main() has to have two args don't do (void)argc as that was not in the code. To make it more consistent with other added functions (that I had to do in other entries for instance and for the same reason) I made the function poke() (r short of poker) pain() instead. The thanks file was modified for this entry too, improving it a bit (hopefully making certain points clearer too).
This commit is contained in:
1 parent
0d25351940
commit
632275a089
4 files changed
+27
-16
No files matched your search
@@ -40,7 +40,7 @@ include ../../var.mk
|
||||
#
|
||||
CSILENCE= -Wno-bitwise-op-parentheses -Wno-char-subscripts -Wno-error \
|
||||
-Wno-implicit-function-declaration -Wno-int-to-pointer-cast \
|
||||
-Wno-unused-value
|
||||
-Wno-unused-value -Wno-unused-parameter
|
||||
|
||||
# Common C compiler warning flags
|
||||
#
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
char a[80];
|
||||
int e[4],g[5],c=100,h,i,j,k,b,f,s,t;
|
||||
jmp_buf p[4];
|
||||
int poke(char *d){
|
||||
return poke((char*)((srand(time((time_t*)&h)),
|
||||
int pain(char *d){
|
||||
return pain((char*)((srand(time((time_t*)&h)),
|
||||
setjmp(p[2]),
|
||||
(k=atoi((fgets(a,sizeof a, stdin),
|
||||
a+strspn(a," -"))))
|
||||
@@ -89,6 +89,5 @@ i+=i+1,
|
||||
longjmp(p[0],0)),0),
|
||||
longjmp(p[2],3)),0));
|
||||
}
|
||||
int main(int argc, char**d){
|
||||
(void)argc;
|
||||
return poke((char*)d); }
|
||||
int main(int argc,char**d){
|
||||
return pain((char*)d);}
|
||||
Reference in new issue
Block a user