403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/games/xmille/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/games/xmille/files/patch-mille.c
--- ./mille.c.orig	1996-03-28 06:29:31.000000000 +0100
+++ ./mille.c	2013-05-26 18:05:50.000000000 +0200
@@ -1,16 +1,17 @@
 # include	"mille.h"
 # include	<signal.h>
+# include	<stdlib.h>
 # ifdef attron
 #	include	<term.h>
-# endif	attron
+# endif	
 
 /*
  * @(#)mille.c	1.3 (Berkeley) 5/10/83
  */
 
-int	rub();
+void rub( int );
 
-/*char	_sobuf[BUFSIZ];*/
+char	_sobuf[BUFSIZ];
 
 main(ac, av)
 reg int		ac;
@@ -49,8 +50,6 @@
 		/* NOTREACHED */
 	}
 	setbuf(stdout, _sobuf);
-	Play = PLAYER;
-	init_ui ();
 # ifndef PROF
 #ifdef sun
 	srandom(getpid());
@@ -60,6 +59,8 @@
 # else
 	srand(0);
 # endif
+	Play = random()&01 ? COMP : PLAYER;
+	init_ui();
 	signal(SIGINT, rub);
 	for (;;) {
 		if (!restore || (Player[PLAYER].total >= 5000
@@ -73,7 +74,7 @@
 		}
 		do {
 			if (!restore)
-				Handstart = Play = other(Handstart);
+				Handstart = other(Handstart);
 			if (!restore || On_exit) {
 				shuffle();
 				init();
@@ -123,9 +124,9 @@
  *	Routine to trap rubouts, and make sure they really want to
  * quit.
  */
-rub() {
+void rub( int signum ) {
 
-	signal(SIGINT, 1);
+	signal(SIGINT, SIG_IGN);
 	if (getyn("Really? "))
 		die();
 	signal(SIGINT, rub);
@@ -136,7 +137,7 @@
  */
 die() {
 
-	signal(SIGINT, 1);
+	signal(SIGINT, SIG_IGN);
 	if (outf)
 		fflush(outf);
 	finish_ui ();

Youez - 2016 - github.com/yon3zu
LinuXploit