summaryrefslogtreecommitdiff
path: root/lib/ss
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ss')
-rw-r--r--lib/ss/error.c6
-rw-r--r--lib/ss/get_readline.c8
-rw-r--r--lib/ss/listen.c18
-rw-r--r--lib/ss/pager.c6
-rw-r--r--lib/ss/requests.c6
-rw-r--r--lib/ss/test_ss.c4
6 files changed, 24 insertions, 24 deletions
diff --git a/lib/ss/error.c b/lib/ss/error.c
index 14c0570f..9a4b5269 100644
--- a/lib/ss/error.c
+++ b/lib/ss/error.c
@@ -18,13 +18,13 @@
#include "ss_internal.h"
#include <stdarg.h>
-
+
char * ss_name(sci_idx)
int sci_idx;
{
register char *ret_val;
register ss_data *infop;
-
+
infop = ss_info(sci_idx);
if (infop->current_request == (char const *)NULL) {
ret_val = malloc((unsigned)
@@ -38,7 +38,7 @@ char * ss_name(sci_idx)
else {
register char *cp;
register char const *cp1;
- ret_val = malloc((unsigned)sizeof(char) *
+ ret_val = malloc((unsigned)sizeof(char) *
(strlen(infop->subsystem_name)+
strlen(infop->current_request)+
4));
diff --git a/lib/ss/get_readline.c b/lib/ss/get_readline.c
index 70099b09..16679a30 100644
--- a/lib/ss/get_readline.c
+++ b/lib/ss/get_readline.c
@@ -25,7 +25,7 @@ static void ss_release_readline(ss_data *info)
#ifdef HAVE_DLOPEN
if (!info->readline_handle)
return;
-
+
info->readline = 0;
info->add_history = 0;
info->redisplay = 0;
@@ -46,7 +46,7 @@ void ss_get_readline(int sci_idx)
const char **t, *libpath = 0;
char *tmp, *cp, *next;
char **(**completion_func)(const char *, int, int);
-
+
if (info->readline_handle)
return;
@@ -55,7 +55,7 @@ void ss_get_readline(int sci_idx)
libpath = DEFAULT_LIBPATH;
if (*libpath == 0 || !strcmp(libpath, "none"))
return;
-
+
tmp = malloc(strlen(libpath)+1);
if (!tmp)
return;
@@ -94,4 +94,4 @@ void ss_get_readline(int sci_idx)
#endif
}
-
+
diff --git a/lib/ss/listen.c b/lib/ss/listen.c
index 05d0dc06..bd7c8c09 100644
--- a/lib/ss/listen.c
+++ b/lib/ss/listen.c
@@ -3,7 +3,7 @@
*
* $Header$
* $Locker$
- *
+ *
* Copyright 1987, 1988 by MIT Student Information Processing Board
*
* Permission to use, copy, modify, and distribute this software and
@@ -56,7 +56,7 @@ int ss_listen (int sci_idx)
jmp_buf old_jmpb;
ss_data *old_info = current_info;
char *line;
-
+
current_info = info = ss_info(sci_idx);
sig_cont = (sigret_t (*)(int)) 0;
info->abort = 0;
@@ -81,7 +81,7 @@ int ss_listen (int sci_idx)
line = input;
else
line = NULL;
-
+
input[BUFSIZ-1] = 0;
}
if (line == NULL) {
@@ -89,7 +89,7 @@ int ss_listen (int sci_idx)
(void) signal(SIGCONT, sig_cont);
goto egress;
}
-
+
cp = strchr(line, '\n');
if (cp) {
*cp = '\0';
@@ -130,11 +130,11 @@ void ss_abort_subsystem(int sci_idx, int code)
{
ss_info(sci_idx)->abort = 1;
ss_info(sci_idx)->exit_status = code;
-
+
}
-void ss_quit(int argc __SS_ATTR((unused)),
- const char * const *argv __SS_ATTR((unused)),
+void ss_quit(int argc __SS_ATTR((unused)),
+ const char * const *argv __SS_ATTR((unused)),
int sci_idx, pointer infop __SS_ATTR((unused)))
{
ss_abort_subsystem(sci_idx, 0);
@@ -151,7 +151,7 @@ static char *cmd_generator(const char *text, int state)
static char const * const * name;
ss_request_entry *request;
char *ret;
-
+
if (state == 0) {
len = strlen(text);
rqtbl = current_info->rqt_tables;
@@ -187,7 +187,7 @@ static char *cmd_generator(const char *text, int state)
return 0;
}
-char **ss_rl_completion(const char *text, int start,
+char **ss_rl_completion(const char *text, int start,
int end __SS_ATTR((unused)))
{
if ((start == 0) && current_info->rl_completion_matches)
diff --git a/lib/ss/pager.c b/lib/ss/pager.c
index a7a2a092..ca05519c 100644
--- a/lib/ss/pager.c
+++ b/lib/ss/pager.c
@@ -71,10 +71,10 @@ char *ss_safe_getenv(const char *arg)
*/
#ifndef NO_FORK
-int ss_pager_create(void)
+int ss_pager_create(void)
{
int filedes[2];
-
+
if (pipe(filedes) != 0)
return(-1);
@@ -110,7 +110,7 @@ void ss_page_stdin()
{
int i;
sigset_t mask;
-
+
for (i = 3; i < 32; i++)
(void) close(i);
(void) signal(SIGINT, SIG_DFL);
diff --git a/lib/ss/requests.c b/lib/ss/requests.c
index 80133688..2e061000 100644
--- a/lib/ss/requests.c
+++ b/lib/ss/requests.c
@@ -18,7 +18,7 @@
#define DECLARE(name) void name(int argc,const char * const *argv, \
int sci_idx, void *infop)
-
+
/*
* ss_self_identify -- assigned by default to the "." request
*/
@@ -36,7 +36,7 @@ void ss_self_identify(int argc __SS_ATTR((unused)),
*/
void ss_subsystem_name(int argc __SS_ATTR((unused)),
const char * const *argv __SS_ATTR((unused)),
- int sci_idx,
+ int sci_idx,
void *infop __SS_ATTR((unused)))
{
printf("%s\n", ss_info(sci_idx)->subsystem_name);
@@ -47,7 +47,7 @@ void ss_subsystem_name(int argc __SS_ATTR((unused)),
*/
void ss_subsystem_version(int argc __SS_ATTR((unused)),
const char * const *argv __SS_ATTR((unused)),
- int sci_idx,
+ int sci_idx,
void *infop __SS_ATTR((unused)))
{
printf("%s\n", ss_info(sci_idx)->subsystem_version);
diff --git a/lib/ss/test_ss.c b/lib/ss/test_ss.c
index 36e899d3..aba7cbcd 100644
--- a/lib/ss/test_ss.c
+++ b/lib/ss/test_ss.c
@@ -1,6 +1,6 @@
/*
* test_ss.c
- *
+ *
* Copyright 1987, 1988 by MIT Student Information Processing Board
*
* Permission to use, copy, modify, and distribute this software and
@@ -11,7 +11,7 @@
* M.I.T. S.I.P.B. make no representations about the suitability of
* this software for any purpose. It is provided "as is" without
* express or implied warranty.
-
+
*/
#include <unistd.h>