From: krw Date: Wed, 7 Oct 2015 00:04:57 +0000 (+0000) Subject: Note permissions for the crc32() code adapted from Hacker's Delight. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b2e0265f2181b4a6180cfc18429ed960d848cdea;p=openbsd Note permissions for the crc32() code adapted from Hacker's Delight. Prompted by deraadt@. --- diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c index 808cd52a0c0..e6416147c7d 100644 --- a/sbin/fdisk/misc.c +++ b/sbin/fdisk/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.52 2015/08/27 20:58:27 krw Exp $ */ +/* $OpenBSD: misc.c,v 1.53 2015/10/07 00:04:57 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -344,6 +344,14 @@ ask_string(const char *prompt, const char *oval) /* * Adapted from Hacker's Delight crc32b(). + * + * To quote http://www.hackersdelight.org/permissions.htm : + * + * "You are free to use, copy, and distribute any of the code on + * this web site, whether modified by you or not. You need not give + * attribution. This includes the algorithms (some of which appear + * in Hacker's Delight), the Hacker's Assistant, and any code submitted + * by readers. Submitters implicitly agree to this." */ u_int32_t crc32(const u_char *buf, const u_int32_t size)