~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to nss/nss_files/files-proto.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Protocols file parser in nss_files module.
2
 
   Copyright (C) 1996, 1997, 2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
 
5
5
   The GNU C Library is free software; you can redistribute it and/or
36
36
 
37
37
#include GENERIC
38
38
 
39
 
DB_LOOKUP (protobyname, '.', 0, ("%s", name),
 
39
DB_LOOKUP (protobyname, 1 + strlen (name), (".%s", name),
40
40
           LOOKUP_NAME (p_name, p_aliases),
41
41
           const char *name)
42
42
 
43
 
DB_LOOKUP (protobynumber, '=', 20, ("%zd", (ssize_t) proto),
 
43
DB_LOOKUP (protobynumber, 20, ("=%d", proto),
44
44
           {
45
45
             if (result->p_proto == proto)
46
46
               break;