Skip to content

Commit 1f90429

Browse files
committed
Inline set_scriptbuf() function (used only once)
1 parent f975b10 commit 1f90429

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

src/python-exec.c

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -213,23 +213,6 @@ int resolve_symlinks(char* outbuf, const char* path)
213213
}
214214
#endif
215215

216-
/**
217-
* Set path in scriptbuf for given impl.
218-
*
219-
* @bufp points to the buffer.
220-
*
221-
* @impl holds the implementation name.
222-
*
223-
* @progname contains the program basename.
224-
*/
225-
static void set_scriptbuf(char* bufp, const char* impl,
226-
const char* progname)
227-
{
228-
strcpy(bufp, impl);
229-
strcat(bufp, "/");
230-
strcat(bufp, progname);
231-
}
232-
233216
/**
234217
* Set preference for implementation, if it is not set already.
235218
*
@@ -565,7 +548,9 @@ int main(int argc, char* argv[])
565548
continue;
566549
found_any = 1;
567550

568-
set_scriptbuf(bufpy, i->name, fnpos);
551+
strcpy(bufpy, i->name);
552+
strcat(bufpy, "/");
553+
strcat(bufpy, fnpos);
569554
execute(scriptbuf, argv);
570555
}
571556

0 commit comments

Comments
 (0)