~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to cmd-line-utils/readline/complete.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1839
1839
#else /* !__WIN32__ && !__OPENNT) */
1840
1840
  static char *username = (char *)NULL;
1841
1841
  static struct passwd *entry;
1842
 
  static int namelen, first_char, first_char_loc;
 
1842
  static int first_char, first_char_loc;
1843
1843
  char *value;
 
1844
#if defined (HAVE_GETPWENT)
 
1845
  static int namelen;
 
1846
#endif
1844
1847
 
1845
1848
  if (state == 0)
1846
1849
    {
1850
1853
      first_char_loc = first_char == '~';
1851
1854
 
1852
1855
      username = savestring (&text[first_char_loc]);
 
1856
#if defined (HAVE_GETPWENT)
1853
1857
      namelen = strlen (username);
 
1858
#endif
1854
1859
      setpwent ();
1855
1860
    }
1856
1861