mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s4:py_nttime2string - removed unused variable "nt2"
And add some linespaces to look better.
This commit is contained in:
@ -123,18 +123,19 @@ static PyObject *py_nttime2unix(PyObject *self, PyObject *args)
|
|||||||
static PyObject *py_nttime2string(PyObject *self, PyObject *args)
|
static PyObject *py_nttime2string(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
PyObject *ret;
|
PyObject *ret;
|
||||||
NTTIME nt, nt2;
|
NTTIME nt;
|
||||||
TALLOC_CTX *tmp_ctx;
|
TALLOC_CTX *tmp_ctx;
|
||||||
const char *string;
|
const char *string;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "K", &nt))
|
if (!PyArg_ParseTuple(args, "K", &nt))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
tmp_ctx = talloc_new(NULL);
|
tmp_ctx = talloc_new(NULL);
|
||||||
|
|
||||||
string = nt_time_string(tmp_ctx, nt);
|
string = nt_time_string(tmp_ctx, nt);
|
||||||
ret = PyString_FromString(string);
|
ret = PyString_FromString(string);
|
||||||
|
|
||||||
talloc_free(tmp_ctx);
|
talloc_free(tmp_ctx);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user