From: Matteo Nastasi (mop) Date: Sun, 16 Mar 2008 08:33:34 +0000 (+0000) Subject: @ before all ftok function X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=0980e055a006803ca87e630a35a3d99cd00500c9;p=brisk.git @ before all ftok function --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 845cf24..caf5111 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1320,7 +1320,7 @@ class Room { { GLOBAL $G_false, $sess; - if (($tok = ftok(FTOK_PATH."/main", "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -1362,7 +1362,7 @@ class Room { // var_dump($room); - if (($tok = ftok(FTOK_PATH."/main", "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) return (FALSE); do { @@ -1393,7 +1393,7 @@ class Room { // echo "LOCK: ".FTOK_PATH."/main"; // exit; - if (($tok = ftok(FTOK_PATH."/main", "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -1608,7 +1608,7 @@ function log_legal($timecur, $sess, $name, $where, $mesg) function lock_banlist() { - if (($tok = ftok(FTOK_PATH."/main", "L")) == -1) { + if (($tok = @ftok(FTOK_PATH."/main", "L")) == -1) { echo "FTOK FAILED"; exit; } diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index bfaddf4..f2147d6 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -23,7 +23,7 @@ class Briskin5 { $this->the_end = FALSE; - if (($this->tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + if (($this->tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -126,7 +126,7 @@ class Briskin5 { $shm = FALSE; log_wr("TABLE_IDX ".FTOK_PATH."/table".$table_idx); - if (($tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -216,7 +216,7 @@ class Briskin5 { log_main("DESTROY2 BRISKIN5 DATA"); - if (($tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) break; if (($shm = shm_attach($tok, BRISKIN5_SHM_DIMS)) === FALSE)