~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to openbsd-compat/setenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-09-30 23:09:58 UTC
  • mfrom: (1.13.3 upstream) (29 hardy)
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20080930230958-o6vsgn8c4mm959s0
Tags: 1:5.1p1-3
* Remove unnecessary ssh-vulnkey output in non-verbose mode when no
  compromised or unknown keys were found (closes: #496495).
* Configure with --disable-strip; dh_strip will deal with stripping
  binaries and will honour DEB_BUILD_OPTIONS (thanks, Bernhard R. Link;
  closes: #498681).
* Fix handling of zero-length server banners (thanks, Tomas Mraz; closes:
  #497026).

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 *      Explicitly removes '=' in argument name.
48
48
 */
49
49
static char *
50
 
__findenv(const char *name, int *offset)
 
50
__findenv(const char *name, size_t *offset)
51
51
{
52
52
        extern char **environ;
53
53
        int len, i;
82
82
{
83
83
        static char **lastenv;                  /* last value of environ */
84
84
        char *C;
85
 
        int l_value, offset;
 
85
        size_t l_value, offset;
86
86
 
87
87
        if (*value == '=')                      /* no `=' in value */
88
88
                ++value;
133
133
unsetenv(const char *name)
134
134
{
135
135
        char **P;
136
 
        int offset;
 
136
        size_t offset;
137
137
 
138
138
        while (__findenv(name, &offset))        /* if set multiple times */
139
139
                for (P = &environ[offset];; ++P)