Changeset c79a047 for zephyr.c


Ignore:
Timestamp:
Sep 28, 2009, 1:14:23 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
de8945b
Parents:
99068d3
git-author:
Anders Kaseorg <andersk@mit.edu> (09/27/09 19:29:43)
git-committer:
Anders Kaseorg <andersk@mit.edu> (09/28/09 13:14:23)
Message:
Correctly prototype functions with no parameters as foo(void), not foo().

foo() is a deprecated old-style prototype for a function that takes
any arguments.  Specifying foo(void) catches more bugs.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rda60ba9 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
     
    11241124 * free the return.
    11251125 */
    1126 char *owl_zephyr_getsubs()
     1126char *owl_zephyr_getsubs(void)
    11271127{
    11281128#ifdef HAVE_LIBZEPHYR
Note: See TracChangeset for help on using the changeset viewer.