Changes in zephyr.c [987cf3f:8ab1f28]
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r987cf3f r8ab1f28 179 179 { 180 180 #ifdef HAVE_LIBZEPHYR 181 if(owl_global_is_havezephyr(&g)) 182 return(ZPending()); 181 Code_t code; 182 if(owl_global_is_havezephyr(&g)) { 183 if((code = ZPending()) < 0) { 184 owl_function_debugmsg("Error (%s) in ZPending()\n", 185 error_message(code)); 186 return 0; 187 } 188 return code; 189 } 183 190 #endif 184 191 return 0; … … 258 265 259 266 if (stat(subsfile, &statbuff) != 0) { 260 owl_free(subsfile);261 267 if (error_on_nofile == 1) 262 268 return -1; … … 374 380 subsfile = owl_zephyr_dotfile(".anyone", filename); 375 381 376 if (stat(subsfile, &statbuff) == -1) { 377 owl_free(subsfile); 382 if (stat(subsfile, &statbuff) == -1) 378 383 return 0; 379 }380 384 381 385 ZResetAuthentication(); … … 852 856 char *tmpbuff, *myuser, *to; 853 857 owl_message *mout; 854 owl_zwrite *z;855 858 856 859 /* bail if it doesn't look like a message we should reply to. Some … … 888 891 owl_free(to); 889 892 890 z = owl_zwrite_new(tmpbuff);891 owl_zwrite_set_message(z, owl_global_get_zaway_msg(&g));892 owl_zwrite_set_zsig(z, "Automated reply:");893 894 893 /* display the message as an admin message in the receive window */ 895 mout=owl_function_make_outgoing_zephyr( z);894 mout=owl_function_make_outgoing_zephyr(owl_global_get_zaway_msg(&g), tmpbuff, "Automated reply:"); 896 895 owl_global_messagequeue_addmsg(&g, mout); 897 896 owl_free(tmpbuff); 898 owl_zwrite_delete(z);899 897 #endif 900 898 } … … 1397 1395 #ifdef HAVE_LIBZEPHYR 1398 1396 ZNotice_t notice; 1397 Code_t code; 1399 1398 owl_message *m=NULL; 1400 1399 1401 1400 while(owl_zephyr_zpending() && zpendcount < OWL_MAX_ZEPHYRGRAMS_TO_PROCESS) { 1402 1401 if (owl_zephyr_zpending()) { 1403 ZReceiveNotice(¬ice, NULL); 1402 if ((code = ZReceiveNotice(¬ice, NULL)) != ZERR_NONE) { 1403 owl_function_debugmsg("Error: %s while calling ZReceiveNotice\n", 1404 error_message(code)); 1405 continue; 1406 } 1404 1407 zpendcount++; 1405 1408
Note: See TracChangeset
for help on using the changeset viewer.