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

« back to all changes in this revision

Viewing changes to apps/lgroupadd.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:
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 :