Changeset c79a047


Ignore:
Timestamp:
Sep 28, 2009, 1:14:23 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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>
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r36486be rc79a047  
    230230}
    231231
    232 void owl_aim_logged_out()
     232void owl_aim_logged_out(void)
    233233{
    234234  if (owl_global_is_aimloggedin(&g)) owl_function_adminmsg("", "Logged out of AIM");
     
    408408}
    409409
    410 int owl_aim_process_events()
     410int owl_aim_process_events(void)
    411411{
    412412  aim_session_t *aimsess;
     
    19951995}
    19961996
    1997 void owl_process_aim()
     1997void owl_process_aim(void)
    19981998{
    19991999  if (owl_global_is_doaimevents(&g)) {
  • commands.c

    re60f98c rc79a047  
    995995};
    996996
    997 void owl_command_info()
     997void owl_command_info(void)
    998998{
    999999  owl_function_info();
    10001000}
    10011001
    1002 void owl_command_nop()
     1002void owl_command_nop(void)
    10031003{
    10041004}
     
    10481048}
    10491049
    1050 void owl_command_alist()
     1050void owl_command_alist(void)
    10511051{
    10521052  owl_function_buddylist(1, 0, NULL);
    10531053}
    10541054
    1055 void owl_command_blist()
     1055void owl_command_blist(void)
    10561056{
    10571057  owl_function_buddylist(1, 1, NULL);
    10581058}
    10591059
    1060 void owl_command_toggleoneline()
     1060void owl_command_toggleoneline(void)
    10611061{
    10621062  owl_function_toggleoneline();
    10631063}
    10641064
    1065 void owl_command_about()
     1065void owl_command_about(void)
    10661066{
    10671067  owl_function_about();
    10681068}
    10691069
    1070 void owl_command_version()
     1070void owl_command_version(void)
    10711071{
    10721072  owl_function_makemsg("BarnOwl version %s", OWL_VERSION_STRING);
     
    13191319}
    13201320
    1321 void owl_command_expunge()
     1321void owl_command_expunge(void)
    13221322{
    13231323  owl_function_expunge();
    13241324}
    13251325
    1326 void owl_command_first()
     1326void owl_command_first(void)
    13271327{
    13281328  owl_global_set_rightshift(&g, 0);
     
    13301330}
    13311331
    1332 void owl_command_last()
     1332void owl_command_last(void)
    13331333{
    13341334  owl_function_lastmsg();
    13351335}
    13361336
    1337 void owl_command_resize()
     1337void owl_command_resize(void)
    13381338{
    13391339  owl_function_resize();
    13401340}
    13411341
    1342 void owl_command_redisplay()
     1342void owl_command_redisplay(void)
    13431343{
    13441344  owl_function_full_redisplay();
     
    13461346}
    13471347
    1348 void owl_command_shift_right()
     1348void owl_command_shift_right(void)
    13491349{
    13501350  owl_function_shift_right();
    13511351}
    13521352
    1353 void owl_command_shift_left()
     1353void owl_command_shift_left(void)
    13541354{
    13551355  owl_function_shift_left();
    13561356}
    13571357
    1358 void owl_command_unsuball()
     1358void owl_command_unsuball(void)
    13591359{
    13601360  owl_function_unsuball();
     
    13881388}
    13891389
    1390 void owl_command_suspend()
     1390void owl_command_suspend(void)
    13911391{
    13921392  owl_function_suspend();
     
    16721672}
    16731673
    1674 void owl_command_quit()
     1674void owl_command_quit(void)
    16751675{
    16761676  owl_function_quit();
     
    23112311}
    23122312
    2313 void owl_command_beep()
     2313void owl_command_beep(void)
    23142314{
    23152315  owl_function_beep();
  • fmtext.c

    rfb2f9ab rc79a047  
    830830
    831831/* Reset used list */
    832 void owl_fmtext_reset_colorpairs()
     832void owl_fmtext_reset_colorpairs(void)
    833833{
    834834  if (owl_global_get_hascolors(&g)) {
  • functions.c

    r27964fe rc79a047  
    4444}
    4545
    46 void owl_function_show_commands()
     46void owl_function_show_commands(void)
    4747{
    4848  owl_list l;
     
    7878}
    7979
    80 void owl_function_show_styles() {
     80void owl_function_show_styles(void) {
    8181  owl_list l;
    8282  owl_fmtext fm;
     
    120120}
    121121
    122 void owl_function_show_license()
     122void owl_function_show_license(void)
    123123{
    124124  const char *text;
     
    166166}
    167167
    168 void owl_function_show_quickstart()
     168void owl_function_show_quickstart(void)
    169169{
    170170    const char *message =
     
    357357}
    358358
    359 void owl_function_loopwrite_setup()
     359void owl_function_loopwrite_setup(void)
    360360{
    361361  owl_editwin *e;
     
    693693}
    694694
    695 void owl_function_nextmsg()
     695void owl_function_nextmsg(void)
    696696{
    697697  owl_function_nextmsg_full(NULL, 0, 1);
    698698}
    699699
    700 void owl_function_prevmsg()
     700void owl_function_prevmsg(void)
    701701{
    702702  owl_function_prevmsg_full(NULL, 0, 1);
    703703}
    704704
    705 void owl_function_nextmsg_notdeleted()
     705void owl_function_nextmsg_notdeleted(void)
    706706{
    707707  owl_function_nextmsg_full(NULL, 1, 1);
    708708}
    709709
    710 void owl_function_prevmsg_notdeleted()
     710void owl_function_prevmsg_notdeleted(void)
    711711{
    712712  owl_function_prevmsg_full(NULL, 1, 1);
     
    772772}
    773773
    774 void owl_function_expunge()
     774void owl_function_expunge(void)
    775775{
    776776  int curmsg;
     
    808808}
    809809
    810 void owl_function_firstmsg()
     810void owl_function_firstmsg(void)
    811811{
    812812  owl_global_set_curmsg(&g, 0);
     
    816816}
    817817
    818 void owl_function_lastmsg_noredisplay()
     818void owl_function_lastmsg_noredisplay(void)
    819819{
    820820  int oldcurmsg, curmsg;
     
    838838}
    839839
    840 void owl_function_lastmsg()
     840void owl_function_lastmsg(void)
    841841{
    842842  owl_function_lastmsg_noredisplay();
     
    844844}
    845845
    846 void owl_function_shift_right()
     846void owl_function_shift_right(void)
    847847{
    848848  owl_global_set_rightshift(&g, owl_global_get_rightshift(&g)+10);
     
    851851}
    852852
    853 void owl_function_shift_left()
     853void owl_function_shift_left(void)
    854854{
    855855  int shift;
     
    866866}
    867867
    868 void owl_function_unsuball()
     868void owl_function_unsuball(void)
    869869{
    870870  unsuball();
     
    946946}
    947947
    948 void owl_function_suspend()
     948void owl_function_suspend(void)
    949949{
    950950  endwin();
     
    956956}
    957957
    958 void owl_function_zaway_toggle()
     958void owl_function_zaway_toggle(void)
    959959{
    960960  if (!owl_global_is_zaway(&g)) {
     
    966966}
    967967
    968 void owl_function_zaway_on()
     968void owl_function_zaway_on(void)
    969969{
    970970  owl_global_set_zaway_on(&g);
     
    972972}
    973973
    974 void owl_function_zaway_off()
     974void owl_function_zaway_off(void)
    975975{
    976976  owl_global_set_zaway_off(&g);
     
    978978}
    979979
    980 void owl_function_aaway_toggle()
     980void owl_function_aaway_toggle(void)
    981981{
    982982  if (!owl_global_is_aaway(&g)) {
     
    988988}
    989989
    990 void owl_function_aaway_on()
     990void owl_function_aaway_on(void)
    991991{
    992992  owl_global_set_aaway_on(&g);
     
    995995}
    996996
    997 void owl_function_aaway_off()
     997void owl_function_aaway_off(void)
    998998{
    999999  owl_global_set_aaway_off(&g);
     
    10021002}
    10031003
    1004 void owl_function_quit()
     1004void owl_function_quit(void)
    10051005{
    10061006  char *ret;
     
    12271227}
    12281228
    1229 void owl_function_resize()
     1229void owl_function_resize(void)
    12301230{
    12311231  owl_global_set_resize_pending(&g);
    12321232}
    12331233
    1234 void owl_function_run_buffercommand()
     1234void owl_function_run_buffercommand(void)
    12351235{
    12361236  owl_editwin_do_callback(owl_global_get_typwin(&g));
     
    12641264}
    12651265
    1266 void owl_function_beep()
     1266void owl_function_beep(void)
    12671267{
    12681268  if (owl_global_is_bell(&g)) {
     
    13021302}
    13031303
    1304 void owl_function_full_redisplay()
     1304void owl_function_full_redisplay(void)
    13051305{
    13061306  redrawwin(owl_global_get_curs_recwin(&g));
     
    13841384}
    13851385
    1386 void owl_function_about()
     1386void owl_function_about(void)
    13871387{
    13881388  owl_function_popless_text(
     
    14101410}
    14111411
    1412 void owl_function_info()
     1412void owl_function_info(void)
    14131413{
    14141414  const owl_message *m;
     
    15451545 * style the user may be using
    15461546 */
    1547 void owl_function_curmsg_to_popwin()
     1547void owl_function_curmsg_to_popwin(void)
    15481548{
    15491549  const owl_view *v;
     
    16281628}
    16291629
    1630 void owl_function_mainwin_pagedown()
     1630void owl_function_mainwin_pagedown(void)
    16311631{
    16321632  int i;
     
    16431643}
    16441644
    1645 void owl_function_mainwin_pageup()
     1645void owl_function_mainwin_pageup(void)
    16461646{
    16471647  owl_global_set_curmsg(&g, owl_global_get_topmsg(&g));
     
    16491649}
    16501650
    1651 void owl_function_getsubs()
     1651void owl_function_getsubs(void)
    16521652{
    16531653  char *buff;
     
    16641664}
    16651665
    1666 void owl_function_printallvars()
     1666void owl_function_printallvars(void)
    16671667{
    16681668  const char *name;
     
    16911691}
    16921692
    1693 void owl_function_show_variables()
     1693void owl_function_show_variables(void)
    16941694{
    16951695  owl_list varnames;
     
    17451745}
    17461746
    1747 void owl_function_delete_automsgs()
     1747void owl_function_delete_automsgs(void)
    17481748{
    17491749  /* mark for deletion all messages in the current view that match the
     
    17781778}
    17791779
    1780 void owl_function_status()
     1780void owl_function_status(void)
    17811781{
    17821782  char buff[MAXPATHLEN+1];
     
    18581858}
    18591859
    1860 void owl_function_show_term()
     1860void owl_function_show_term(void)
    18611861{
    18621862  owl_fmtext fm;
     
    22712271}
    22722272
    2273 void owl_function_show_filters()
     2273void owl_function_show_filters(void)
    22742274{
    22752275  const owl_list *l;
     
    23162316}
    23172317
    2318 void owl_function_show_zpunts()
     2318void owl_function_show_zpunts(void)
    23192319{
    23202320  const owl_filter *f;
     
    27492749}
    27502750
    2751 void owl_function_show_colors()
     2751void owl_function_show_colors(void)
    27522752{
    27532753  owl_fmtext fm;
     
    28992899}
    29002900
    2901 void owl_function_show_keymaps()
     2901void owl_function_show_keymaps(void)
    29022902{
    29032903  owl_list l;
     
    33793379}
    33803380
    3381 void owl_function_toggleoneline()
     3381void owl_function_toggleoneline(void)
    33823382{
    33833383  owl_view *v;
     
    34383438}
    34393439
    3440 void owl_function_showerrs()
     3440void owl_function_showerrs(void)
    34413441{
    34423442  owl_fmtext fm;
     
    35523552}
    35533553
    3554 int owl_function_get_color_count()
     3554int owl_function_get_color_count(void)
    35553555{
    35563556     return COLORS;
     
    35793579}
    35803580
    3581 void owl_function_mark_message()
     3581void owl_function_mark_message(void)
    35823582{
    35833583  const owl_message *m;
     
    35983598}
    35993599
    3600 void owl_function_swap_cur_marked()
     3600void owl_function_swap_cur_marked(void)
    36013601{
    36023602  int marked_id;
  • help.c

    re19eb97 rc79a047  
    22#include <string.h>
    33
    4 void owl_help()
     4void owl_help(void)
    55{
    66  owl_fmtext fm;
  • logging.c

    re2ebf39 rc79a047  
    179179
    180180  /* create a present message so we can pass it to
    181    * owl_log_shouldlog_message()
     181   * owl_log_shouldlog_message(void)
    182182   */
    183183  m = owl_malloc(sizeof(owl_message));
  • message.c

    r24ccc01 rc79a047  
    1414static owl_fmtext_cache * fmtext_cache_next = fmtext_cache;
    1515
    16 void owl_message_init_fmtext_cache ()
     16void owl_message_init_fmtext_cache(void)
    1717{
    1818    int i;
     
    2323}
    2424
    25 owl_fmtext_cache * owl_message_next_fmtext() /*noproto*/
     25owl_fmtext_cache *owl_message_next_fmtext(void) /*noproto*/
    2626{
    2727    owl_fmtext_cache * f = fmtext_cache_next;
  • owl.c

    r4e4847c rc79a047  
    4646} owl_options;
    4747
    48 void usage()
     48void usage(void)
    4949{
    5050  fprintf(stderr, "Barnowl version %s\n", OWL_VERSION_STRING);
  • select.c

    r69f47f8 rc79a047  
    152152}
    153153
    154 int owl_select_dispatch_count()
     154int owl_select_dispatch_count(void)
    155155{
    156156  return owl_list_get_size(owl_global_get_dispatchlist(&g));
     
    215215}
    216216
    217 void owl_select_gc()
     217void owl_select_gc(void)
    218218{
    219219  int i;
     
    325325}
    326326
    327 void owl_select_handle_intr()
     327void owl_select_handle_intr(void)
    328328{
    329329  owl_input in;
     
    336336}
    337337
    338 void owl_select()
     338void owl_select(void)
    339339{
    340340  int i, max_fd, aim_max_fd, aim_done, ret;
  • util.c

    rda60ba9 rc79a047  
    454454
    455455/* Get the default tty name.  Caller must free the return */
    456 char *owl_util_get_default_tty()
     456char *owl_util_get_default_tty(void)
    457457{
    458458  const char *tmp;
     
    475475
    476476/* Animation hack */
    477 void owl_hack_animate()
     477void owl_hack_animate(void)
    478478{
    479479  const owl_messagelist *ml;
     
    671671}
    672672
    673 const char * owl_get_datadir()
     673const char * owl_get_datadir(void)
    674674{
    675675  const char * datadir = getenv("BARNOWL_DATA_DIR");
  • 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.