]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
cksum: make cksum.h standalone
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Feb 2025 04:09:10 +0000 (20:09 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Feb 2025 04:10:19 +0000 (20:10 -0800)
* src/cksum.h: Include stdint.h, stdio.h so that this file
can be included in any order, after config.h.
Add a copyright notice.

src/cksum.h

index c42491a95bee8c4121a66b80fdd196e6e6255017..d866a7b74e32efe5dd6e45cf30136a003007b464 100644 (file)
@@ -1,5 +1,24 @@
+/* Calculate checksums and sizes of files
+   Copyright 2025 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
 #ifndef __CKSUM_H__
-# define __CKSUM_H__
+#define __CKSUM_H__
+
+#include <stdint.h>
+#include <stdio.h>
 
 extern bool cksum_debug;