~ubuntu-branches/ubuntu/wily/libuser/wily

« back to all changes in this revision

Viewing changes to lib/prompt.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2006-09-03 21:58:15 UTC
  • mto: (2.1.1 edgy) (1.1.5 upstream) (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060903215815-rtvvfzhaer8ymyp4
Tags: upstream-0.54.6-2.1.dfsg.1
ImportĀ upstreamĀ versionĀ 0.54.6-2.1.dfsg.1

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 ?