misc/fq: the port had been updated to version 0.0.3

Garbage-collect the patch that had been integrated upstream.

Reported by:	portscout
This commit is contained in:
Alexey Dokuchaev
2022-01-13 04:29:42 +00:00
parent 547e7388e8
commit a2d1431878
3 changed files with 4 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= fq
PORTVERSION= 0.0.2
PORTVERSION= 0.0.3
DISTVERSIONPREFIX= v
CATEGORIES= misc

View File

@@ -1,6 +1,6 @@
TIMESTAMP = 1640017267
SHA256 (wader-fq-v0.0.2_GH0.tar.gz) = 1bb7b968ba4ffe6f0dc8b080a2051719caebb96c244606468aecb2786640937b
SIZE (wader-fq-v0.0.2_GH0.tar.gz) = 1299179
TIMESTAMP = 1641459467
SHA256 (wader-fq-v0.0.3_GH0.tar.gz) = b47663e0dc417dbeee178c4814a3221ff9d13eb6394530da0c96e1cb7bc00499
SIZE (wader-fq-v0.0.3_GH0.tar.gz) = 1900520
SHA256 (golang-sys-fe61309f8881_GH0.tar.gz) = 246a4b2f59ab8d7b4434b15d973e7d86ccb65c3dd3e616e4784d4ab9b50c9898
SIZE (golang-sys-fe61309f8881_GH0.tar.gz) = 1253640
SHA256 (golang-text-v0.3.7_GH0.tar.gz) = 7cab2f6c3133ac1d422edd952b0dd2082fa55a73c2663fb2defd9bf83d649b26

View File

@@ -1,20 +0,0 @@
--- pkg/checksum/crc.go.orig 2021-12-20 16:21:07 UTC
+++ pkg/checksum/crc.go
@@ -8,7 +8,7 @@ import (
type Table [256]uint
-func MakeTable(poly int, bits int) Table {
+func MakeTable(poly uint, bits int) Table {
table := [256]uint{}
mask := uint((1 << bits) - 1)
@@ -17,7 +17,7 @@ func MakeTable(poly int, bits int) Table {
crc := uint(i << (bits - 8))
for j := 0; j < 8; j++ {
if crc&(1<<(bits-1)) != 0 {
- crc = ((crc << 1) ^ uint(poly)) & mask
+ crc = ((crc << 1) ^ poly) & mask
} else {
crc = (crc << 1) & mask
}