~ubuntu-branches/ubuntu/hardy/klibc/hardy-updates

« back to all changes in this revision

Viewing changes to klibc/unsetenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-01-04 20:24:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060104202452-ec4v3n829rymukuv
Tags: 1.1.15-0ubuntu1
* New upstream version.

* Patch to fix compilation on parisc64 kernels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include <stdlib.h>
7
7
#include <string.h>
8
8
#include <unistd.h>
 
9
#include "env.h"
9
10
 
10
11
int unsetenv(const char *name)
11
12
{
27
28
    }
28
29
  }
29
30
 
 
31
  if ( !environ )
 
32
    return 0;
 
33
 
30
34
  for ( p = environ ; (q = *p) ; p++ ) {
31
35
    if ( !strncmp(name,q,len) && q[len] == '=' )
32
36
      break;