summaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-07-12 14:33:13 +0300
committerAvi Kivity <avi@redhat.com>2009-07-12 14:33:13 +0300
commiteb40653fcb920b7effa9bf2aaeab1337f815c179 (patch)
treef6c3268485b9c03e61a9f34d130fe2b3d9753b0d /cutils.c
parentcf2e620604a11caee6c10357b1c9fb5aee6c78ca (diff)
Revert "support colon in filenames"
This reverts commit 707c0dbc97cddfe8d2441b8259c6c526d99f2dd8. It was reverted from upstream as well. Conflicts: block.c Signed-off-by: Avi Kivity <avi@redhat.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 346477b15..c8d532623 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;