~ubuntu-branches/ubuntu/saucy/gnutls28/saucy

« back to all changes in this revision

Viewing changes to src/libopts/compat/strchr.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-07-30 21:40:07 UTC
  • mfrom: (14.1.9 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130730214007-9mrd08xo61kla008
Tags: 3.2.3-1ubuntu1
* Sync with Debian (LP: #1068029). Remaining change:
  - Drop gnutls-bin and -doc since we want to use the versions
    in gnutls26 as the defaults instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
       SVID 3, POSIX, BSD 4.3, ISO 9899
25
25
*/
26
26
 
27
 
char*
28
 
strchr( char const *s, int c)
 
27
static char *
 
28
strchr(char const *s, int c);
 
29
 
 
30
static char *
 
31
strrchr(char const *s, int c);
 
32
 
 
33
static char *
 
34
strchr(char const *s, int c)
29
35
{
30
36
    do {
31
37
        if ((unsigned)*s == (unsigned)c)
36
42
    return NULL;
37
43
}
38
44
 
39
 
char*
40
 
strrchr( char const *s, int c)
 
45
static char *
 
46
strrchr(char const *s, int c)
41
47
{
42
48
    char const *e = s + strlen(s);
43
49