From 30b27cfa7f5c339332ab922a17d42a8ba3ba6f7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 14 Feb 2009 23:56:33 +0000 Subject: [PATCH] Rewritten to out() --- udp-client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/udp-client.php b/udp-client.php index a8c21b9b0..d06663ee9 100644 --- a/udp-client.php +++ b/udp-client.php @@ -10,6 +10,7 @@ global $hasher; function validate ($data) { global $hasher; + switch ($hasher) { case "md5": return md5($data); @@ -24,7 +25,7 @@ function validate ($data) { break; default: - print("Unknown hasher: ${hasher}\n"); + out(__FUNCTION__, __LINE__, "Unknown hasher: ${hasher}"); break; } } -- 2.39.5