~ubuntu-branches/ubuntu/raring/libuser/raring

« back to all changes in this revision

Viewing changes to lib/prompt.c

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-12-28 19:18:14 UTC
  • mfrom: (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061228191814-i7ssaghc6shbsv95
Tags: 1:0.54.6-2.1.dfsg.1-1.2
* Non-maintainer upload.
* Moved all manpages of commands in /usr/sbin/ from section 1 to
  section 8 (Closes: #404020).
* Added autotools-dev as build-dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
16
 */
17
17
 
18
 
#ident "$Id: prompt.c,v 1.7 2004/08/30 20:21:00 mitr Exp $"
 
18
#ident "$Id: prompt.c,v 1.8 2005/10/09 05:15:47 mitr Exp $"
19
19
 
20
20
#ifdef HAVE_CONFIG_H
21
21
#include "../config.h"
35
35
                  struct lu_error **error)
36
36
{
37
37
        int i;
38
 
        char buf[LINE_MAX];
39
 
        struct termios otermios, ntermios;
40
38
 
41
39
        (void)calldata;
42
40
        LU_ERROR_CHECK(error);
46
44
        }
47
45
 
48
46
        for (i = 0; i < count; i++) {
 
47
                char buf[LINE_MAX];
 
48
                struct termios otermios, ntermios;
 
49
 
49
50
                if (prompts[i].prompt) {
50
51
                        g_print("%s",
51
52
                                prompts[i].domain ?