properly match what is expected by ss library.
* pager.c (ss_pager_create): Cast return from fork to int for use
in switch statement.
* ss.h: Provide full prototype for ss_name(). Add prototypes for
ss_execute_line(), ss_delete_invocation(), ss_add_info_dir(),
ss_delete_info_dir(), ss_abort_subsystem(), ss_get_prompt(),
ss_set_prompt(), ss_add_request_table(),
ss_delete_request_table(), ss_quit().
* ss_internal.h: Made full prototypes for ss_parse(),
ss_page_stdin(), ss_pagre_create(). Add prototypes for
ss_self_identify(), ss_subsystem_name(), ss_subsystem_version(),
ss_unimplemented(). Moved ss_execute_line() to ss.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12598
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-08-02 Ezra Peisach <epeisach@mit.edu>
+
+ * requests.c (DECLARE): Fix prototype for dispatch functions to
+ properly match what is expected by ss library.
+
+ * pager.c (ss_pager_create): Cast return from fork to int for use
+ in switch statement.
+
+ * ss.h: Provide full prototype for ss_name(). Add prototypes for
+ ss_execute_line(), ss_delete_invocation(), ss_add_info_dir(),
+ ss_delete_info_dir(), ss_abort_subsystem(), ss_get_prompt(),
+ ss_set_prompt(), ss_add_request_table(),
+ ss_delete_request_table(), ss_quit().
+
+ * ss_internal.h: Made full prototypes for ss_parse(),
+ ss_page_stdin(), ss_pagre_create(). Add prototypes for
+ ss_self_identify(), ss_subsystem_name(), ss_subsystem_version(),
+ ss_unimplemented(). Moved ss_execute_line() to ss.h
+
2000-07-03 Ezra Peisach <epeisach@mit.edu>
* test_ss.c (main): Change usage of ss_listen to agree with
if (pipe(filedes) != 0)
return(-1);
- switch(fork()) {
+ switch((int) fork()) {
case -1:
return(-1);
case 0:
char buf[80];
register int n;
while ((n = read(0, buf, 80)) > 0)
- write(1, buf, n);
+ write(1, buf, (unsigned) n);
}
exit(errno);
}
#include <stdio.h>
#include "ss_internal.h"
-#define DECLARE(name) void name(argc,argv,sci_idx)int argc,sci_idx;char **argv;
+#define DECLARE(name) void name(argc,argv,sci_idx,info_ptr)int argc,sci_idx;const char * const *argv; pointer info_ptr;
/*
* ss_self_identify -- assigned by default to the "." request
void ss_help __SS_PROTO;
void ss_list_requests __SS_PROTO;
char *ss_current_request();
-char *ss_name();
#ifdef __STDC__
+char *ss_name(int);
void ss_error (int, long, char const *, ...);
void ss_perror (int, long, char const *);
int ss_listen (int);
int ss_create_invocation(char *, char *, char *, ss_request_table *, int *);
+void ss_delete_invocation(int);
+void ss_add_info_dir(int , char *, int *);
+void ss_delete_info_dir(int , char *, int *);
+int ss_execute_command(int sci_idx, char **);
+void ss_abort_subsystem(int, int);
+void ss_set_prompt(int, char *);
+char *ss_get_prompt(int);
+void ss_add_request_table(int, ss_request_table *, int, int *);
+void ss_delete_request_table(int, ss_request_table *, int *);
+int ss_execute_line PROTOTYPE((int, char*));
+int ss_quit PROTOTYPE((int, char**, int, pointer));
#else
+char *ss_name();
void ss_error ();
void ss_perror ();
int ss_listen ();
int ss_create_invocation();
-#endif
+void ss_delete_invocation();
+void ss_add_info_dir();
+void ss_delete_info_dir();
+int ss_execute_command();
void ss_abort_subsystem();
+void ss_set_prompt();
+char *ss_get_prompt();
+void ss_add_request_table();
+void ss_delete_request_table();
+int ss_execute_line();
+int ss_quit();
+#endif
extern ss_request_table ss_std_requests;
#endif /* _ss_h */
(*code_ptr=0,ss_info(sci_idx)->current_request)
void ss_unknown_function();
void ss_delete_info_dir();
-int ss_execute_line();
-char **ss_parse();
+char **ss_parse PROTOTYPE((int, char *, int *));
ss_abbrev_info *ss_abbrev_initialize PROTOTYPE((char *, int *));
-void ss_page_stdin();
-int ss_pager_create();
+void ss_page_stdin PROTOTYPE((void));
+int ss_pager_create PROTOTYPE((void));
+void ss_self_identify __SS_PROTO;
+void ss_subsystem_name __SS_PROTO;
+void ss_subsystem_version __SS_PROTO;
+void ss_unimplemented __SS_PROTO;
extern ss_data **_ss_table;
extern char *ss_et_msgs[];