Changeset fa4562c 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:
e19eb97
Parents:
65b2173
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:59:42)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Prepare code for adding const qualifiers for char * and void *.

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

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r712caac rfa4562c  
    12111211
    12121212  /* bail immeaditly if we don't have to do any work */
    1213   ptr=strchr(in, '.');
    1214   if (!strchr(in, '/') && !ptr) {
     1213  ptr=strchr(out, '.');
     1214  if (!strchr(out, '/') && !ptr) {
    12151215    /* no '/' and no '.' */
    12161216    return(out);
    12171217  }
    1218   if (ptr && strchr(in, '@') && (ptr > strchr(in, '@'))) {
     1218  if (ptr && strchr(out, '@') && (ptr > strchr(out, '@'))) {
    12191219    /* There's a '.' but it's in the realm */
    12201220    return(out);
    12211221  }
    1222   if (!strncasecmp(in, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) {
     1222  if (!strncasecmp(out, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) {
    12231223    return(out);
    12241224  }
    12251225
    1226   /* remove the realm from ptr, but hold on to it */
     1226  /* remove the realm from out, but hold on to it */
    12271227  realm=strchr(out, '@');
    12281228  if (realm) realm[0]='\0';
Note: See TracChangeset for help on using the changeset viewer.