Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r3e96ff0 r61de085  
    297297              "Print a znol-style listing of users logged in"),
    298298
    299   OWLCMD_ARGS("alist", owl_command_alist, OWL_CTX_INTERACTIVE,
     299  OWLCMD_VOID("alist", owl_command_alist, OWL_CTX_INTERACTIVE,
    300300              "List AIM users logged in",
    301301              "alist",
    302302              "Print a listing of AIM users logged in"),
    303303
    304   OWLCMD_ARGS("blist", owl_command_blist, OWL_CTX_INTERACTIVE,
     304  OWLCMD_VOID("blist", owl_command_blist, OWL_CTX_INTERACTIVE,
    305305              "List all buddies logged in",
    306306              "blist",
    307307              "Print a listing of buddies logged in, regardless of protocol."),
    308308
    309   OWLCMD_ARGS("toggle-oneline", owl_command_toggleoneline, OWL_CTX_INTERACTIVE,
     309  OWLCMD_VOID("toggle-oneline", owl_command_toggleoneline, OWL_CTX_INTERACTIVE,
    310310              "Toggle the style between oneline and the default style",
    311311              "toggle-oneline",
     
    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}
     
    10171017char *owl_command_zlist(int argc, const char *const *argv, const char *buff)
    10181018{
    1019   int elapsed=0, timesort=0;
    10201019  const char *file=NULL;
    10211020
     
    10231022  argv++;
    10241023  while (argc) {
    1025     if (!strcmp(argv[0], "-e")) {
    1026       elapsed=1;
    1027       argc--;
    1028       argv++;
    1029     } else if (!strcmp(argv[0], "-t")) {
    1030       timesort=1;
    1031       argc--;
    1032       argv++;
    1033     } else if (!strcmp(argv[0], "-f")) {
     1024    if (!strcmp(argv[0], "-f")) {
    10341025      if (argc==1) {
    10351026        owl_function_makemsg("zlist: -f needs an argument");
     
    10481039}
    10491040
    1050 char *owl_command_alist()
     1041void owl_command_alist(void)
    10511042{
    10521043  owl_function_buddylist(1, 0, NULL);
    1053   return(NULL);
    1054 }
    1055 
    1056 char *owl_command_blist()
     1044}
     1045
     1046void owl_command_blist(void)
    10571047{
    10581048  owl_function_buddylist(1, 1, NULL);
    1059   return(NULL);
    1060 }
    1061 
    1062 char *owl_command_toggleoneline()
     1049}
     1050
     1051void owl_command_toggleoneline(void)
    10631052{
    10641053  owl_function_toggleoneline();
    1065   return(NULL);
    1066 }
    1067 
    1068 void owl_command_about()
     1054}
     1055
     1056void owl_command_about(void)
    10691057{
    10701058  owl_function_about();
    10711059}
    10721060
    1073 void owl_command_version()
     1061void owl_command_version(void)
    10741062{
    10751063  owl_function_makemsg("BarnOwl version %s", OWL_VERSION_STRING);
     
    13221310}
    13231311
    1324 void owl_command_expunge()
     1312void owl_command_expunge(void)
    13251313{
    13261314  owl_function_expunge();
    13271315}
    13281316
    1329 void owl_command_first()
     1317void owl_command_first(void)
    13301318{
    13311319  owl_global_set_rightshift(&g, 0);
     
    13331321}
    13341322
    1335 void owl_command_last()
     1323void owl_command_last(void)
    13361324{
    13371325  owl_function_lastmsg();
    13381326}
    13391327
    1340 void owl_command_resize()
     1328void owl_command_resize(void)
    13411329{
    13421330  owl_function_resize();
    13431331}
    13441332
    1345 void owl_command_redisplay()
     1333void owl_command_redisplay(void)
    13461334{
    13471335  owl_function_full_redisplay();
     
    13491337}
    13501338
    1351 void owl_command_shift_right()
     1339void owl_command_shift_right(void)
    13521340{
    13531341  owl_function_shift_right();
    13541342}
    13551343
    1356 void owl_command_shift_left()
     1344void owl_command_shift_left(void)
    13571345{
    13581346  owl_function_shift_left();
    13591347}
    13601348
    1361 void owl_command_unsuball()
     1349void owl_command_unsuball(void)
    13621350{
    13631351  owl_function_unsuball();
     
    13911379}
    13921380
    1393 void owl_command_suspend()
     1381void owl_command_suspend(void)
    13941382{
    13951383  owl_function_suspend();
     
    16751663}
    16761664
    1677 void owl_command_quit()
     1665void owl_command_quit(void)
    16781666{
    16791667  owl_function_quit();
     
    19871975#else
    19881976  owl_function_makemsg("This Owl does not support zcrypt");
     1977  return NULL;
    19891978#endif
    19901979}
     
    23132302}
    23142303
    2315 void owl_command_beep()
     2304void owl_command_beep(void)
    23162305{
    23172306  owl_function_beep();
Note: See TracChangeset for help on using the changeset viewer.