Revision: 14496
Author: adrian.chadd
Date: Wed Mar 24 23:14:48 2010
Log: Issue #94 - Win32 environment fixes


http://code.google.com/p/lusca-cache/source/detail?r=14496

Modified:
 /branches/LUSCA_HEAD/libasyncio/aiops_win32.c

=======================================
--- /branches/LUSCA_HEAD/libasyncio/aiops_win32.c       Wed Jul 22 07:37:20 2009
+++ /branches/LUSCA_HEAD/libasyncio/aiops_win32.c       Wed Mar 24 23:14:48 2010
@@ -572,13 +572,13 @@
        if (!cancelled && requestp->ret == 0)
            xmemcpy(requestp->statp, requestp->tmpstatp, sizeof(struct stat));
        squidaio_xfree(requestp->tmpstatp, sizeof(struct stat));
-       squidaio_xstrfree(requestp->path);
+       xfree(requestp->path);
        break;
     case _AIO_OP_OPEN:
        if (cancelled && requestp->ret >= 0)
            /* The open() was cancelled but completed */
            close(requestp->ret);
-       squidaio_xstrfree(requestp->path);
+       xfree(requestp->path);
        break;
     case _AIO_OP_CLOSE:
        if (cancelled && requestp->ret < 0)
@@ -588,7 +588,7 @@
     case _AIO_OP_UNLINK:
     case _AIO_OP_TRUNCATE:
     case _AIO_OP_OPENDIR:
-       squidaio_xstrfree(requestp->path);
+       xfree(requestp->path);
        break;
     case _AIO_OP_READ:
        break;
@@ -628,7 +628,7 @@
     squidaio_request_t *requestp;

     requestp = memPoolAlloc(squidaio_request_pool);
-    requestp->path = (char *) squidaio_xstrdup(path);
+    requestp->path = (char *) xstrdup(path);
     requestp->oflag = oflag;
     requestp->mode = mode;
     requestp->resultp = resultp;
@@ -745,7 +745,7 @@
     squidaio_request_t *requestp;

     requestp = memPoolAlloc(squidaio_request_pool);
-    requestp->path = (char *) squidaio_xstrdup(path);
+    requestp->path = (char *) xstrdup(path);
     requestp->statp = sb;
     requestp->tmpstatp = (struct stat *) xcalloc(1, sizeof(struct stat));
     requestp->resultp = resultp;
@@ -771,7 +771,7 @@
     squidaio_request_t *requestp;

     requestp = memPoolAlloc(squidaio_request_pool);
-    requestp->path = squidaio_xstrdup(path);
+    requestp->path = xstrdup(path);
     requestp->resultp = resultp;
     requestp->request_type = _AIO_OP_UNLINK;
     requestp->cancelled = 0;
@@ -796,7 +796,7 @@
     squidaio_request_t *requestp;

     requestp = memPoolAlloc(squidaio_request_pool);
-    requestp->path = (char *) squidaio_xstrdup(path);
+    requestp->path = (char *) xstrdup(path);
     requestp->offset = length;
     requestp->resultp = resultp;
     requestp->request_type = _AIO_OP_TRUNCATE;

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to