]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - cmd/zstd/enzstd.c
Download link for 0.6.0 release
[tofuproxy.git] / cmd / zstd / enzstd.c
index 34bf3757bb91260c9916df8651ef66435044fabe..6ffae275a4ae9b05a002da342cce9453ecdaa028 100644 (file)
@@ -1,19 +1,17 @@
-/*
-enzstd -- .warc.zst compressor
-Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
-
-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, version 3 of the License.
-
-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 <http://www.gnu.org/licenses/>.
-*/
+// enzstd -- .warc.zst compressor
+// Copyright (C) 2021-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// 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, version 3 of the License.
+//
+// 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 <http://www.gnu.org/licenses/>.
 
 #include <inttypes.h>
 #include <stdio.h>
@@ -47,8 +45,8 @@ main(int argc, char **argv)
         return EXIT_FAILURE;
     }
 
-    char *src = NULL;
-    char *dst = NULL;
+    unsigned char *src = NULL;
+    unsigned char *dst = NULL;
     int rc = EXIT_FAILURE;
     size_t srcSize = 8;
     src = malloc(srcSize);