~ubuntu-branches/ubuntu/karmic/libvirt/karmic-proposed

« back to all changes in this revision

Viewing changes to gnulib/lib/strpbrk.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-02-11 01:01:42 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090211010142-8zrm7z1u6ryfhkiq
Tags: 0.6.0-1ubuntu1
* Merge with Debian experimental. Remaining changes:
  - debian/control:
    + Don't build-depend on QEmu.
    + Add "XS-Debian-" prefix to Debian's Vcs headers.
    + Bump bridge-utils, dnsmasq-base, netcat-openbsd, and iptables
      to Depends of libvirt-bin.
    + s/interract/interact/g
    + Add versioned Conflicts/Replaces to libvirt0 for libvirt0-dbg,
      since we used to ship them as such.
  - Rename libvirt group to libvirtd.
  - 0005-delayed_iff_up_bridge.patch: Don't try to bring up the bridge
    before at least one interface has been added to it.
  - dont_clobber_existing_bridges.patch: Assign the name of the virtual
    bridge dynamically to avoid interfering with existing bridges.
  - better_default_uri_virsh.patch: Default to qemu:///system if the
    user has write access to the libvirt socket, otherwise
    qemu:///session.
  - We call libxen-dev libxen3-dev, so change all references.
  - Included (but did not enable) opennebula patch (since it's not in
    main yet).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006 Free Software
2
 
   Foundation, Inc.
3
 
 
4
 
   NOTE: The canonical source of this file is maintained with the GNU C Library.
5
 
   Bugs can be reported to bug-glibc@prep.ai.mit.edu.
6
 
 
7
 
   This program is free software; you can redistribute it and/or modify it
8
 
   under the terms of the GNU Lesser General Public License as published by the
9
 
   Free Software Foundation; either version 2.1, or (at your option) any
10
 
   later version.
11
 
 
12
 
   This program is distributed in the hope that it will be useful,
13
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
   GNU Lesser General Public License for more details.
16
 
 
17
 
   You should have received a copy of the GNU Lesser General Public License
18
 
   along with this program; if not, write to the Free Software Foundation,
19
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
20
 
 
21
 
#include <config.h>
22
 
 
23
 
#include <stddef.h>
24
 
#include <string.h>
25
 
 
26
 
#undef strpbrk
27
 
 
28
 
/* Find the first occurrence in S of any character in ACCEPT.  */
29
 
char *
30
 
strpbrk (const char *s, const char *accept)
31
 
{
32
 
  while (*s != '\0')
33
 
    {
34
 
      const char *a = accept;
35
 
      while (*a != '\0')
36
 
        if (*a++ == *s)
37
 
          return (char *) s;
38
 
      ++s;
39
 
    }
40
 
 
41
 
  return NULL;
42
 
}