tplink-safeloader: add TP-Link CPE605 v1 Support
[project/firmware-utils.git] / src / mkwrgimg.c
index 3915d146cff11bd41f054d7ef5b8c2abd1e79c0a..9a5993c277e685871689740e445036c8695fc88c 100644 (file)
@@ -1,10 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  *  Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
- *
- *  This program is free software; you can redistribute it and/or modify it
- *  under the terms of the GNU General Public License version 2 as published
- *  by the Free Software Foundation.
- *
  */
 
 #include <stdio.h>
@@ -100,7 +96,7 @@ static void get_digest(struct wrg_header *header, char *data, int size)
        MD5_Update(&ctx, (char *)&header->devname, sizeof(header->devname));
        MD5_Update(&ctx, data, size);
 
-       MD5_Final(header->digest, &ctx);
+       MD5_Final((unsigned char *)header->digest, &ctx);
 }
 
 int main(int argc, char *argv[])