Changeset e19eb97 for zephyr.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 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:
1077891a
Parents:
fa4562c
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rfa4562c re19eb97  
    187187}
    188188
    189 char *owl_zephyr_get_sender()
     189const char *owl_zephyr_get_sender()
    190190{
    191191#ifdef HAVE_LIBZEPHYR
     
    235235 * zephyr to load the subscriptions.
    236236 */
    237 int owl_zephyr_loadsubs(char *filename, int error_on_nofile)
     237int owl_zephyr_loadsubs(const char *filename, int error_on_nofile)
    238238{
    239239#ifdef HAVE_LIBZEPHYR
     
    350350}
    351351
    352 int owl_zephyr_loadloginsubs(char *filename)
     352int owl_zephyr_loadloginsubs(const char *filename)
    353353{
    354354#ifdef HAVE_LIBZEPHYR
     
    422422}
    423423
    424 int owl_zephyr_sub(char *class, char *inst, char *recip)
     424int owl_zephyr_sub(const char *class, const char *inst, const char *recip)
    425425{
    426426#ifdef HAVE_LIBZEPHYR
     
    443443
    444444
    445 int owl_zephyr_unsub(char *class, char *inst, char *recip)
     445int owl_zephyr_unsub(const char *class, const char *inst, const char *recip)
    446446{
    447447#ifdef HAVE_LIBZEPHYR
     
    635635
    636636#ifdef HAVE_LIBZEPHYR
    637 char *owl_zephyr_get_zsig(ZNotice_t *n, int *k)
     637const char *owl_zephyr_get_zsig(ZNotice_t *n, int *k)
    638638{
    639639  /* return a pointer to the zsig if there is one */
     
    656656}
    657657#else
    658 char *owl_zephyr_get_zsig(void *n, int *k)
     658const char *owl_zephyr_get_zsig(void *n, int *k)
    659659{
    660660  return("");
     
    662662#endif
    663663
    664 int send_zephyr(char *opcode, char *zsig, char *class, char *instance, char *recipient, char *message)
     664int send_zephyr(const char *opcode, const char *zsig, const char *class, const char *instance, const char *recipient, const char *message)
    665665{
    666666#ifdef HAVE_LIBZEPHYR
     
    717717#endif
    718718
    719 void send_ping(char *to, char *zclass, char *zinstance)
     719void send_ping(const char *to, const char *zclass, const char *zinstance)
    720720{
    721721#ifdef HAVE_LIBZEPHYR
     
    885885#endif
    886886
    887 void owl_zephyr_zlocate(char *user, char *out, int auth)
     887void owl_zephyr_zlocate(const char *user, char *out, int auth)
    888888{
    889889#ifdef HAVE_LIBZEPHYR
     
    920920}
    921921
    922 void owl_zephyr_addsub(char *filename, char *class, char *inst, char *recip)
     922void owl_zephyr_addsub(const char *filename, const char *class, const char *inst, const char *recip)
    923923{
    924924#ifdef HAVE_LIBZEPHYR
     
    963963}
    964964
    965 void owl_zephyr_delsub(char *filename, char *class, char *inst, char *recip)
     965void owl_zephyr_delsub(const char *filename, const char *class, const char *inst, const char *recip)
    966966{
    967967#ifdef HAVE_LIBZEPHYR
     
    985985
    986986/* caller must free the return */
    987 char *owl_zephyr_makesubline(char *class, char *inst, char *recip)
     987char *owl_zephyr_makesubline(const char *class, const char *inst, const char *recip)
    988988{
    989989  char *out;
     
    998998{
    999999#ifdef HAVE_LIBZEPHYR
    1000   char *exposure, *eset;
     1000  const char *exposure, *eset;
    10011001  int ret;
    10021002
     
    10491049}
    10501050
    1051 void owl_zephyr_addbuddy(char *name)
     1051void owl_zephyr_addbuddy(const char *name)
    10521052{
    10531053  char *filename;
     
    10651065}
    10661066
    1067 void owl_zephyr_delbuddy(char *name)
     1067void owl_zephyr_delbuddy(const char *name)
    10681068{
    10691069  char *filename;
     
    10761076/* return auth string */
    10771077#ifdef HAVE_LIBZEPHYR
    1078 char *owl_zephyr_get_authstr(ZNotice_t *n)
     1078const char *owl_zephyr_get_authstr(ZNotice_t *n)
    10791079{
    10801080
     
    10921092}
    10931093#else
    1094 char *owl_zephyr_get_authstr(void *n)
     1094const char *owl_zephyr_get_authstr(void *n)
    10951095{
    10961096  return("");
     
    11561156}
    11571157
    1158 char *owl_zephyr_get_variable(char *var)
     1158const char *owl_zephyr_get_variable(const char *var)
    11591159{
    11601160#ifdef HAVE_LIBZEPHYR
     
    11651165}
    11661166
    1167 void owl_zephyr_set_locationinfo(char *host, char *val)
     1167void owl_zephyr_set_locationinfo(const char *host, const char *val)
    11681168{
    11691169#ifdef HAVE_LIBZEPHYR
     
    11751175 * The caller must free the return
    11761176 */
    1177 char *short_zuser(char *in)
     1177char *short_zuser(const char *in)
    11781178{
    11791179  char *out, *ptr;
     
    11921192 * The caller must free the return.
    11931193 */
    1194 char *long_zuser(char *in)
     1194char *long_zuser(const char *in)
    11951195{
    11961196  if (strchr(in, '@')) {
     
    12041204 * caller must free the return
    12051205 */
    1206 char *owl_zephyr_smartstripped_user(char *in)
     1206char *owl_zephyr_smartstripped_user(const char *in)
    12071207{
    12081208  char *ptr, *realm, *out;
     
    12471247 * -1 on failure, 0 on success.
    12481248 */
    1249 int owl_zephyr_get_anyone_list(owl_list *in, char *filename)
     1249int owl_zephyr_get_anyone_list(owl_list *in, const char *filename)
    12501250{
    12511251#ifdef HAVE_LIBZEPHYR
Note: See TracChangeset for help on using the changeset viewer.