changeset 1106:2052b53d3034

Turn Algo_Type's name attribute into const char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 22:37:08 +0200
parents c339657c9758
children 4f3335bba3d9
files algo.h common-algo.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/algo.h	Sat May 02 22:24:02 2015 +0200
+++ b/algo.h	Sat May 02 22:37:08 2015 +0200
@@ -35,7 +35,7 @@
 
 struct Algo_Type {
 
-	const unsigned char *name; /* identifying name */
+	const char *name; /* identifying name */
 	char val; /* a value for this cipher, or -1 for invalid */
 	const void *data; /* algorithm specific data */
 	char usable; /* whether we can use this algorithm */
--- a/common-algo.c	Sat May 02 22:24:02 2015 +0200
+++ b/common-algo.c	Sat May 02 22:37:08 2015 +0200
@@ -322,7 +322,7 @@
 				buf_putbyte(algolist, ',');
 			donefirst = 1;
 			len = strlen(localalgos[i].name);
-			buf_putbytes(algolist, localalgos[i].name, len);
+			buf_putbytes(algolist, (const unsigned char *) localalgos[i].name, len);
 		}
 	}
 	buf_putstring(buf, algolist->data, algolist->len);