From 22c2f9078e6f9a11acd68b2bee11e32b6dc3ac2e Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 31 Aug 2012 21:03:31 +0200 Subject: [PATCH] make them return booleans --- rawmsg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rawmsg.go b/rawmsg.go index ca3f8f38..2a8c0f92 100644 --- a/rawmsg.go +++ b/rawmsg.go @@ -17,7 +17,7 @@ func rawSetId(msg []byte, i uint16) bool { } // rawSetQuestionLen sets the lenght of the question section. -func rawSetQuestionLen(msg []byte, i uint16) { +func rawSetQuestionLen(msg []byte, i uint16) bool { if len(msg) < 6 { return false } @@ -26,7 +26,7 @@ func rawSetQuestionLen(msg []byte, i uint16) { } // rawSetAnswerLen sets the lenght of the answer section. -func rawSetAnswerLen(msg []byte, i uint16) { +func rawSetAnswerLen(msg []byte, i uint16) bool { if len(msg) < 8 { return false } @@ -35,7 +35,7 @@ func rawSetAnswerLen(msg []byte, i uint16) { } // rawSetsNsLen sets the lenght of the authority section. -func rawSetNsLen(msg []byte, i uint16) { +func rawSetNsLen(msg []byte, i uint16) bool { if len(msg) < 10 { return false } @@ -44,7 +44,7 @@ func rawSetNsLen(msg []byte, i uint16) { } // rawSetExtraLen sets the lenght of the additional section. -func rawSetExtraLen(msg []byte, i uint16) { +func rawSetExtraLen(msg []byte, i uint16) bool { if len(msg) < 12 { return false }