Skip to content
Snippets Groups Projects
Commit 5b7c84cc authored by Morris Jette's avatar Morris Jette
Browse files

Cosmetic changes

Add "void" argument to a function and rename a local function to have
a prefix of "_"
parent aeeadc29
No related branches found
No related tags found
No related merge requests found
......@@ -1242,7 +1242,7 @@ _get_next_segment (char **from, int width, char *buf, int bufsiz)
}
static int
_term_columns ()
_term_columns (void)
{
char *val;
int cols = 80;
......
......@@ -262,7 +262,7 @@ static int get_jobid_uid_from_env (uint32_t *jobidp, uid_t *uidp)
return (0);
}
static int handle_spank_mode (int argc, char *argv[])
static int _handle_spank_mode (int argc, char *argv[])
{
char prefix[64] = "spank-";
const char *mode = argv[2];
......@@ -326,7 +326,7 @@ static int process_cmdline (int argc, char *argv[])
exit(0);
}
if ((argc == 3) && (strcmp(argv[1], "spank") == 0)) {
if (handle_spank_mode (argc, argv) < 0)
if (_handle_spank_mode(argc, argv) < 0)
exit (1);
exit (0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment