Skip to content

Commit 8034e3a

Browse files
Implement code review formatting changes
1 parent 061483b commit 8034e3a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

softioc/extension.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,17 @@ static PyObject *get_field_offsets(PyObject *self, PyObject *args)
9494

9595

9696
/* This is our own re-implementation of EPICS's dbPutField function.
97-
We do this to allow us to control when dbProcess is called. We use the
98-
same logicical flow as the original function. */
97+
* We do this to allow us to control when dbProcess is called. We use the
98+
* same logicical flow as the original function. */
9999
static PyObject *db_put_field_process(PyObject *self, PyObject *args)
100100
{
101101
const char *name;
102102
short dbrType;
103103
PyObject *buffer_ptr;
104104
long length;
105105
short process;
106-
if (!PyArg_ParseTuple(args, "shOlh", &name, &dbrType, &buffer_ptr, &length, &process))
106+
if (!PyArg_ParseTuple(args, "shOlh",
107+
&name, &dbrType, &buffer_ptr, &length, &process))
107108
return NULL;
108109
void *pbuffer = PyLong_AsVoidPtr(buffer_ptr);
109110
if (!pbuffer)
@@ -134,13 +135,9 @@ static PyObject *db_put_field_process(PyObject *self, PyObject *args)
134135
if (put_result == 0 && process)
135136
{
136137
if (precord->pact)
137-
{
138138
precord->rpro = TRUE;
139-
}
140139
else
141-
{
142140
dbProcess(precord);
143-
}
144141
}
145142

146143
dbScanUnlock(precord);

0 commit comments

Comments
 (0)