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

« back to all changes in this revision

Viewing changes to apps/lgroupadd.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:
16
16
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
17
 */
18
18
 
19
 
#ident "$Id: lgroupadd.c,v 1.28 2004/11/13 23:50:28 mitr Exp $"
 
19
#ident "$Id: lgroupadd.c,v 1.29 2005/10/09 05:15:47 mitr Exp $"
20
20
 
21
21
#ifdef HAVE_CONFIG_H
22
22
#include "config.h"
36
36
int
37
37
main(int argc, const char **argv)
38
38
{
39
 
        const char *name = NULL, *gid_number_str = NULL;
 
39
        const char *name, *gid_number_str = NULL;
40
40
        gid_t gidNumber = LU_VALUE_INVALID_ID;
41
 
        struct lu_context *ctx = NULL;
42
 
        struct lu_ent *ent = NULL;
 
41
        struct lu_context *ctx;
 
42
        struct lu_ent *ent;
43
43
        struct lu_error *error = NULL;
44
44
        int interactive = FALSE;
45
45
        int system_account = FALSE;
95
95
                }
96
96
                gidNumber = val;
97
97
        }
98
 
                
 
98
 
99
99
        /* Start up the library. */
100
100
        ctx = lu_start(NULL, 0, NULL, NULL,
101
101
                       interactive ? lu_prompt_console :