Changeset 1077891a
- Timestamp:
- Aug 15, 2009, 7:08:18 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 64735f0
- Parents:
- e19eb97
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 00:39:42)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
re19eb97 r1077891a 1415 1415 owl_view *v; 1416 1416 #ifdef HAVE_LIBZEPHYR 1417 ZNotice_t *n;1417 const ZNotice_t *n; 1418 1418 #endif 1419 1419 -
message.c
re19eb97 r1077891a 482 482 483 483 #ifdef HAVE_LIBZEPHYR 484 ZNotice_t *owl_message_get_notice(owl_message *m)484 const ZNotice_t *owl_message_get_notice(owl_message *m) 485 485 { 486 486 return(&(m->notice)); … … 734 734 735 735 #ifdef HAVE_LIBZEPHYR 736 void owl_message_create_from_znotice(owl_message *m, ZNotice_t *n)736 void owl_message_create_from_znotice(owl_message *m, const ZNotice_t *n) 737 737 { 738 738 struct hostent *hent; … … 846 846 } 847 847 #else 848 void owl_message_create_from_znotice(owl_message *m, void *n)848 void owl_message_create_from_znotice(owl_message *m, const void *n) 849 849 { 850 850 } -
zephyr.c
re19eb97 r1077891a 467 467 */ 468 468 #ifdef HAVE_LIBZEPHYR 469 char *owl_zephyr_get_field( ZNotice_t *n, int j)469 char *owl_zephyr_get_field(const ZNotice_t *n, int j) 470 470 { 471 471 int i, count, save; … … 499 499 } 500 500 501 char *owl_zephyr_get_field_as_utf8( ZNotice_t *n, int j)501 char *owl_zephyr_get_field_as_utf8(const ZNotice_t *n, int j) 502 502 { 503 503 int i, count, save; … … 545 545 546 546 #ifdef HAVE_LIBZEPHYR 547 int owl_zephyr_get_num_fields( ZNotice_t *n)547 int owl_zephyr_get_num_fields(const ZNotice_t *n) 548 548 { 549 549 int i, fields; … … 560 560 } 561 561 #else 562 int owl_zephyr_get_num_fields( void *n)562 int owl_zephyr_get_num_fields(const void *n) 563 563 { 564 564 return(0); … … 570 570 * caller must free the return 571 571 */ 572 char *owl_zephyr_get_message( ZNotice_t *n, owl_message *m)572 char *owl_zephyr_get_message(const ZNotice_t *n, owl_message *m) 573 573 { 574 574 /* don't let ping messages have a body */ … … 635 635 636 636 #ifdef HAVE_LIBZEPHYR 637 const char *owl_zephyr_get_zsig( ZNotice_t *n, int *k)637 const char *owl_zephyr_get_zsig(const ZNotice_t *n, int *k) 638 638 { 639 639 /* return a pointer to the zsig if there is one */ … … 656 656 } 657 657 #else 658 const char *owl_zephyr_get_zsig( void *n, int *k)658 const char *owl_zephyr_get_zsig(const void *n, int *k) 659 659 { 660 660 return(""); … … 725 725 726 726 #ifdef HAVE_LIBZEPHYR 727 void owl_zephyr_handle_ack( ZNotice_t *retnotice)727 void owl_zephyr_handle_ack(const ZNotice_t *retnotice) 728 728 { 729 729 char *tmp; … … 803 803 } 804 804 #else 805 void owl_zephyr_handle_ack( void *retnotice)806 { 807 } 808 #endif 809 810 #ifdef HAVE_LIBZEPHYR 811 int owl_zephyr_notice_is_ack( ZNotice_t *n)805 void owl_zephyr_handle_ack(const void *retnotice) 806 { 807 } 808 #endif 809 810 #ifdef HAVE_LIBZEPHYR 811 int owl_zephyr_notice_is_ack(const ZNotice_t *n) 812 812 { 813 813 if (n->z_kind == SERVNAK || n->z_kind == SERVACK || n->z_kind == HMACK) { … … 818 818 } 819 819 #else 820 int owl_zephyr_notice_is_ack( void *n)820 int owl_zephyr_notice_is_ack(const void *n) 821 821 { 822 822 return(0); … … 1076 1076 /* return auth string */ 1077 1077 #ifdef HAVE_LIBZEPHYR 1078 const char *owl_zephyr_get_authstr( ZNotice_t *n)1078 const char *owl_zephyr_get_authstr(const ZNotice_t *n) 1079 1079 { 1080 1080 … … 1092 1092 } 1093 1093 #else 1094 const char *owl_zephyr_get_authstr( void *n)1094 const char *owl_zephyr_get_authstr(const void *n) 1095 1095 { 1096 1096 return("");
Note: See TracChangeset
for help on using the changeset viewer.