summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-04 17:21:30 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-04 17:23:43 +0200
commitb57d11f1b36389c2dba025912db32d465ef6e7c8 (patch)
tree22676cfecafe72f19dbdea39e0452be3b0fcffec
parent7e5fee98be728eab1c20a2da12c1eb0bab9a8ac2 (diff)
downloadsamba-b57d11f1b36389c2dba025912db32d465ef6e7c8.tar.gz
samba-b57d11f1b36389c2dba025912db32d465ef6e7c8.tar.bz2
samba-b57d11f1b36389c2dba025912db32d465ef6e7c8.zip
s4:py_nttime2string - removed unused variable "nt2"
And add some linespaces to look better.
-rw-r--r--source4/scripting/python/pyglue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c
index b2a9d2c9fd..e1c4feaf16 100644
--- a/source4/scripting/python/pyglue.c
+++ b/source4/scripting/python/pyglue.c
@@ -123,18 +123,19 @@ static PyObject *py_nttime2unix(PyObject *self, PyObject *args)
static PyObject *py_nttime2string(PyObject *self, PyObject *args)
{
PyObject *ret;
- NTTIME nt, nt2;
+ NTTIME nt;
TALLOC_CTX *tmp_ctx;
const char *string;
-
if (!PyArg_ParseTuple(args, "K", &nt))
return NULL;
+
tmp_ctx = talloc_new(NULL);
string = nt_time_string(tmp_ctx, nt);
ret = PyString_FromString(string);
talloc_free(tmp_ctx);
+
return ret;
}