Commit 3da55021 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(s_usr_strcmp): Changed type of collat_tab argument from char to unsigned char.

(s_usr_strhead): Ditto.
parent 94b63afd
/*
* $Id: s-string.c,v 1.28 2002/08/10 19:57:47 ceder Exp $
* $Id: s-string.c,v 1.29 2002/10/05 00:07:07 ceder Exp $
* Copyright (C) 1990-1996, 1998-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -518,10 +518,9 @@ s_strcmp (String str1,
* COLLAT_TAB is a table of collating values for every char.
*/
EXPORT int
s_usr_strcmp (String str1,
String str2,
char * collat_tab)
s_usr_strcmp(String str1,
String str2,
unsigned char *collat_tab)
{
String_size index;
String_size shortest; /* Length of the shortest string */
......@@ -601,9 +600,9 @@ s_strhead (String str1,
* s_usr_strcmp()).
*/
EXPORT Bool
s_usr_strhead (String str1,
String str2,
char collat_tab [ COLLAT_TAB_SIZE ])
s_usr_strhead(String str1,
String str2,
unsigned char collat_tab[COLLAT_TAB_SIZE])
{
String_size i; /* Index in comparison loop */
......
/*
* $Id: s-string.h,v 1.18 2002/10/04 07:33:27 ceder Exp $
* $Id: s-string.h,v 1.19 2002/10/05 00:07:06 ceder Exp $
* Copyright (C) 1990-1996, 1999, 2002 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.18 2002/10/04 07:33:27 ceder Exp $
* $Id: s-string.h,v 1.19 2002/10/05 00:07:06 ceder Exp $
*
* s-string.h
* Our own string type. Definition of string type,
......@@ -304,9 +304,9 @@ s_strcmp (String str1,
* COLLAT_TAB is a table of collating values for every char.
*/
extern int
s_usr_strcmp (String str1,
String str2,
char collat_tab [ COLLAT_TAB_SIZE ]);
s_usr_strcmp(String str1,
String str2,
unsigned char collat_tab[COLLAT_TAB_SIZE]);
......@@ -326,9 +326,9 @@ s_strhead (String str1,
* s_usr_strcmp()).
*/
extern Bool
s_usr_strhead (String str1,
String str2,
char collat_tab [ COLLAT_TAB_SIZE ]);
s_usr_strhead(String str1,
String str2,
unsigned char collat_tab[COLLAT_TAB_SIZE]);
......
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