From 1cec71e3597b6ab8df939dff90cc05515d0f0272 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 2 Jul 2009 08:12:26 -0500 Subject: Revert "support colon in filenames" This reverts commit 707c0dbc97cddfe8d2441b8259c6c526d99f2dd8. Signed-off-by: Anthony Liguori --- cutils.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'cutils.c') diff --git a/cutils.c b/cutils.c index 6196a90..bd9a019 100644 --- a/cutils.c +++ b/cutils.c @@ -24,32 +24,6 @@ #include "qemu-common.h" #include "host-utils.h" -/* - * fill first 'len' characters of 'buff' with pruned - * contents of 'str' delimited by the character 'c'. - * Escape character '\' is pruned off. - * Return pointer to the delimiting character. - */ -const char *fill_token(char *buf, const int len, const char *str, const char c) -{ - const char *p=str; - char *q=buf; - - while (p < str+len-1) { - if (*p == c) - break; - if (*p == '\\') { - p++; - if (*p == '\0') - break; - } - *q++ = *p++; - } - *q='\0'; - return p; -} - - void pstrcpy(char *buf, int buf_size, const char *str) { int c; -- cgit v1.1