aboutsummaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-07-02 08:12:26 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:38 -0500
commit1cec71e3597b6ab8df939dff90cc05515d0f0272 (patch)
tree2cd2b6b4c0e25117a095fd22bc61c9747cc49370 /cutils.c
parentc6a5a71a3a1886afad5eeb214eb6e8785f4e0319 (diff)
Revert "support colon in filenames"
This reverts commit 707c0dbc97cddfe8d2441b8259c6c526d99f2dd8. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'cutils.c')
-rw-r--r--cutils.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/cutils.c b/cutils.c
index 6196a9055c..bd9a01950a 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;