From 7753ce57c1b4e5e871bb1da969ccbb318405aacf Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 29 Jun 2008 19:30:32 +0200 Subject: [PATCH] Rename dolink to nofollow This name makes more sense. --- xattr.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/xattr.c b/xattr.c index 581b58a..6271c4e 100644 --- a/xattr.c +++ b/xattr.c @@ -85,16 +85,16 @@ pygetxattr(PyObject *self, PyObject *args) { PyObject *myarg; target_t tgt; - int dolink=0; + int nofollow=0; char *attrname; char *buf; int nalloc, nret; PyObject *res; /* Parse the arguments */ - if (!PyArg_ParseTuple(args, "Os|i", &myarg, &attrname, &dolink)) + if (!PyArg_ParseTuple(args, "Os|i", &myarg, &attrname, &nofollow)) return NULL; - if(!convertObj(myarg, &tgt, dolink)) + if(!convertObj(myarg, &tgt, nofollow)) return NULL; /* Find out the needed size of the buffer */ @@ -156,7 +156,7 @@ static PyObject * pysetxattr(PyObject *self, PyObject *args) { PyObject *myarg; - int dolink=0; + int nofollow=0; char *attrname; char *buf; int bufsize, nret; @@ -165,9 +165,9 @@ pysetxattr(PyObject *self, PyObject *args) /* Parse the arguments */ if (!PyArg_ParseTuple(args, "Oss#|bi", &myarg, &attrname, - &buf, &bufsize, &flags, &dolink)) + &buf, &bufsize, &flags, &nofollow)) return NULL; - if(!convertObj(myarg, &tgt, dolink)) + if(!convertObj(myarg, &tgt, nofollow)) return NULL; /* Set the attribute's value */ @@ -200,16 +200,16 @@ static PyObject * pyremovexattr(PyObject *self, PyObject *args) { PyObject *myarg; - int dolink=0; + int nofollow=0; char *attrname; int nret; target_t tgt; /* Parse the arguments */ - if (!PyArg_ParseTuple(args, "Os|i", &myarg, &attrname, &dolink)) + if (!PyArg_ParseTuple(args, "Os|i", &myarg, &attrname, &nofollow)) return NULL; - if(!convertObj(myarg, &tgt, dolink)) + if(!convertObj(myarg, &tgt, nofollow)) return NULL; /* Remove the attribute */ @@ -240,7 +240,7 @@ static PyObject * pylistxattr(PyObject *self, PyObject *args) { char *buf; - int dolink=0; + int nofollow=0; int nalloc, nret; PyObject *myarg; PyObject *mylist; @@ -249,9 +249,9 @@ pylistxattr(PyObject *self, PyObject *args) target_t tgt; /* Parse the arguments */ - if (!PyArg_ParseTuple(args, "O|i", &myarg, &dolink)) + if (!PyArg_ParseTuple(args, "O|i", &myarg, &nofollow)) return NULL; - if(!convertObj(myarg, &tgt, dolink)) + if(!convertObj(myarg, &tgt, nofollow)) return NULL; /* Find out the needed size of the buffer */ -- 2.39.5