Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    re440602 rc79a047  
    1515} owl_sub_list;
    1616
    17 Code_t ZResetAuthentication();
     17Code_t ZResetAuthentication(void);
    1818#endif
    1919
     
    2121
    2222#ifdef HAVE_LIBZEPHYR
    23 void owl_zephyr_initialize()
     23void owl_zephyr_initialize(void)
    2424{
    2525  int ret;
     
    127127}
    128128
    129 void owl_zephyr_load_initial_subs() {
     129void owl_zephyr_load_initial_subs(void) {
    130130  int ret_sd, ret_bd, ret_u;
    131131
     
    154154}
    155155#else
    156 void owl_zephyr_initialize()
    157 {
    158 }
    159 #endif
    160 
    161 
    162 int owl_zephyr_shutdown()
     156void owl_zephyr_initialize(void)
     157{
     158}
     159#endif
     160
     161
     162int owl_zephyr_shutdown(void)
    163163{
    164164#ifdef HAVE_LIBZEPHYR
     
    171171}
    172172
    173 int owl_zephyr_zpending()
     173int owl_zephyr_zpending(void)
    174174{
    175175#ifdef HAVE_LIBZEPHYR
     
    183183}
    184184
    185 const char *owl_zephyr_get_realm()
     185const char *owl_zephyr_get_realm(void)
    186186{
    187187#ifdef HAVE_LIBZEPHYR
     
    192192}
    193193
    194 const char *owl_zephyr_get_sender()
     194const char *owl_zephyr_get_sender(void)
    195195{
    196196#ifdef HAVE_LIBZEPHYR
     
    316316 * Return -2 if there is a failure from zephyr to load the subscriptions.
    317317 */
    318 int owl_zephyr_loadbarnowldefaultsubs()
     318int owl_zephyr_loadbarnowldefaultsubs(void)
    319319{
    320320#ifdef HAVE_LIBZEPHYR
     
    340340}
    341341
    342 int owl_zephyr_loaddefaultsubs()
     342int owl_zephyr_loaddefaultsubs(void)
    343343{
    344344#ifdef HAVE_LIBZEPHYR
     
    415415}
    416416
    417 void unsuball()
     417void unsuball(void)
    418418{
    419419#if HAVE_LIBZEPHYR
     
    993993#ifdef HAVE_LIBZEPHYR
    994994  char *line, *subsfile;
     995  int linesdeleted;
    995996 
    996997  line=owl_zephyr_makesubline(class, inst, recip);
     
    10031004  }
    10041005 
    1005   owl_util_file_deleteline(subsfile, line, 1);
     1006  linesdeleted = owl_util_file_deleteline(subsfile, line, 1);
     1007  if (linesdeleted > 0) {
     1008    owl_function_makemsg("Subscription removed");
     1009  } else {
     1010    owl_function_error("No subscription present in %s", subsfile);
     1011  }
    10061012  owl_free(subsfile);
    10071013  owl_free(line);
    1008   owl_function_makemsg("Subscription removed");
    10091014#endif
    10101015}
     
    11191124 * free the return.
    11201125 */
    1121 char *owl_zephyr_getsubs()
     1126char *owl_zephyr_getsubs(void)
    11221127{
    11231128#ifdef HAVE_LIBZEPHYR
Note: See TracChangeset for help on using the changeset viewer.