# HG changeset patch # User Gaƫl PORTAY # Date 1430599028 -7200 # Node ID 2052b53d3034f0604c730e54eca491473139a282 # Parent c339657c97588d7cd533078948053ea5605df1ef Turn Algo_Type's name attribute into const char * diff -r c339657c9758 -r 2052b53d3034 algo.h --- 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 */ diff -r c339657c9758 -r 2052b53d3034 common-algo.c --- 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);