Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296063 | Differences between
and this patch

Collapse All | Expand All

(-)sql/sql_show.cc.orig (+26 lines)
Lines 13-18 Link Here
13
   along with this program; if not, write to the Free Software
13
   along with this program; if not, write to the Free Software
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
16
/*
17
 *  * Replecement of strsep, which is missing in solaris. 
18
 *   * http://www.winehq.org/pipermail/wine-patches/2001-November/001322.html
19
 *    */
20
#include <string.h>
21
22
static char* strsep(char** str, const char* delims)
23
{
24
	char* token;
25
	if (*str==NULL) {
26
		/* No more tokens */
27
		return NULL;
28
	}
29
	token=*str;
30
	while (**str!='\0') {
31
		if (strchr(delims,**str)!=NULL) {
32
			**str='\0';
33
			(*str)++;
34
			return token;
35
		}
36
		(*str)++;
37
	}
38
	/* There is no other token */
39
	*str=NULL;
40
	return token;
41
}
16
42
17
/* Function with list databases, tables or fields */
43
/* Function with list databases, tables or fields */
18
44

Return to bug 296063