]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:py_nttime2string - removed unused variable "nt2"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 4 May 2010 15:21:30 +0000 (17:21 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 4 May 2010 15:23:43 +0000 (17:23 +0200)
And add some linespaces to look better.

source4/scripting/python/pyglue.c

index b2a9d2c9fd5d591b61d3421da805874018f7bc04..e1c4feaf1659539e74de850f18cc35731073cfbf 100644 (file)
@@ -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;
 }