- Timestamp:
- Jun 19, 2011, 2:44:13 AM (13 years ago)
- Children:
- b0e6560
- Parents:
- 9d43dcc
- git-author:
- Jason Gross <jgross@mit.edu> (06/06/11 05:24:30)
- git-committer:
- Jason Gross <jgross@mit.edu> (06/19/11 02:44:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
rb848e30 r7dfe886 521 521 */ 522 522 #ifdef HAVE_LIBZEPHYR 523 char *owl_zephyr_get_field(const ZNotice_t *n, int j)523 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_get_field(const ZNotice_t *n, int j) 524 524 { 525 525 int i, count, save; … … 549 549 } 550 550 551 char *owl_zephyr_get_field_as_utf8(const ZNotice_t *n, int j)551 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_get_field_as_utf8(const ZNotice_t *n, int j) 552 552 { 553 553 int i, count, save; … … 581 581 } 582 582 #else 583 char *owl_zephyr_get_field(void *n, int j)583 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_get_field(void *n, int j) 584 584 { 585 585 return(g_strdup("")); 586 586 } 587 char *owl_zephyr_get_field_as_utf8(void *n, int j)587 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_get_field_as_utf8(void *n, int j) 588 588 { 589 589 return owl_zephyr_get_field(n, j); … … 618 618 * caller must free the return 619 619 */ 620 char *owl_zephyr_get_message(const ZNotice_t *n, const owl_message *m)620 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_get_message(const ZNotice_t *n, const owl_message *m) 621 621 { 622 622 #define OWL_NFIELDS 5 … … 939 939 #endif 940 940 941 char *owl_zephyr_zlocate(const char *user, int auth)941 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_zlocate(const char *user, int auth) 942 942 { 943 943 #ifdef HAVE_LIBZEPHYR … … 1039 1039 1040 1040 /* caller must free the return */ 1041 char *owl_zephyr_makesubline(const char *class, const char *inst, const char *recip)1041 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_makesubline(const char *class, const char *inst, const char *recip) 1042 1042 { 1043 1043 return g_strdup_printf("%s,%s,%s\n", class, inst, !strcmp(recip, "") ? "*" : recip); … … 1119 1119 * free the return. 1120 1120 */ 1121 char *owl_zephyr_getsubs(void)1121 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_getsubs(void) 1122 1122 { 1123 1123 #ifdef HAVE_LIBZEPHYR … … 1239 1239 * The caller must free the return 1240 1240 */ 1241 char *short_zuser(const char *in)1241 G_GNUC_WARN_UNUSED_RESULT char *short_zuser(const char *in) 1242 1242 { 1243 1243 char *ptr = strrchr(in, '@'); … … 1251 1251 * The caller must free the return. 1252 1252 */ 1253 char *long_zuser(const char *in)1253 G_GNUC_WARN_UNUSED_RESULT char *long_zuser(const char *in) 1254 1254 { 1255 1255 char *ptr = strrchr(in, '@'); … … 1279 1279 * caller must free the return. 1280 1280 */ 1281 char *owl_zephyr_smartstripped_user(const char *in)1281 G_GNUC_WARN_UNUSED_RESULT char *owl_zephyr_smartstripped_user(const char *in) 1282 1282 { 1283 1283 char *slash, *dot, *realm, *out;
Note: See TracChangeset
for help on using the changeset viewer.