1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-11 00:59:11 +03:00

s4:py_nttime2string - removed unused variable "nt2"

And add some linespaces to look better.
This commit is contained in:
Matthias Dieter Wallnöfer
2010-05-04 17:21:30 +02:00
parent 7e5fee98be
commit b57d11f1b3

View 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;
}