Commit 39609551 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(s_fcrea_str): Argument is a "const char *", not a "const unsigned char *".

parent 5b242a4d
/*
* $Id: s-string.c,v 1.15 1994/04/05 07:57:57 ceder Exp $
* $Id: s-string.c,v 1.16 1995/01/01 13:14:23 ceder Exp $
* Copyright (C) 1990, 1991, 1992, 1993 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -46,7 +46,7 @@
* even if so stated.
*/
static char *rcsid = "$Id: s-string.c,v 1.15 1994/04/05 07:57:57 ceder Exp $";
static char *rcsid = "$Id: s-string.c,v 1.16 1995/01/01 13:14:23 ceder Exp $";
#include <sys/types.h>
#include <stdio.h>
......@@ -225,7 +225,7 @@ s_size_crea_str(String *result,
* by s_crea_str(), to deallocate the memory used by it.
*/
EXPORT String
s_fcrea_str (const unsigned char * c_string)
s_fcrea_str (const char * c_string)
{
String temp;
......@@ -233,7 +233,7 @@ s_fcrea_str (const unsigned char * c_string)
/* Cast needed to make compiler not warn about assignment from
* const pointer to non-const pointer. Sigh... */
temp.string = (unsigned char *)c_string;
temp.len = strlen((const char *)c_string);
temp.len = strlen(c_string);
return temp;
}
......
/*
* $Id: s-string.h,v 1.9 1994/04/05 07:58:02 ceder Exp $
* $Id: s-string.h,v 1.10 1995/01/01 13:14:11 ceder Exp $
* Copyright (C) 1990, 1991, 1992, 1993 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: s-string.h,v 1.9 1994/04/05 07:58:02 ceder Exp $
* $Id: s-string.h,v 1.10 1995/01/01 13:14:11 ceder Exp $
*
* s-string.h
* Our own string type. Definition of string type,
......@@ -179,7 +179,7 @@ s_size_crea_str(String *result,
* by s_crea_str(), to deallocate the memory used by it.
*/
extern String
s_fcrea_str (const unsigned char * c_string);
s_fcrea_str (const char * c_string);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment