summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-19 16:55:38 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-19 16:55:38 -0800
commit0b7433a6fbf4d55417e896ca02dd7da5f51014a1 (patch)
tree9abcc2200efbb5cf7d44124f1fb0b027982dde95 /packet
parent2b15188fe196bb2210ed4e24b776746469215318 (diff)
bmp: use BMP_VERSION
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet')
-rw-r--r--packet/bmp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bmp.go b/packet/bmp.go
index bc789c66..0b78b405 100644
--- a/packet/bmp.go
+++ b/packet/bmp.go
@@ -45,7 +45,7 @@ const (
func (h *BMPHeader) DecodeFromBytes(data []byte) error {
h.Version = data[0]
- if data[0] != 3 {
+ if data[0] != BMP_VERSION {
return fmt.Errorf("error version")
}
h.Length = binary.BigEndian.Uint32(data[1:5])