~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to login-utils/chsh.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 *
23
23
 *
24
24
 */
25
 
#include <err.h>
26
25
#include <sys/types.h>
27
26
#include <stdio.h>
28
27
#include <string.h>
88
87
static void __attribute__((__noreturn__)) usage (FILE *fp)
89
88
{
90
89
    fprintf (fp,
91
 
             _("Usage: %s [ -s shell ] [ --list-shells ] "
92
 
               "[ --help ] [ --version ]\n"
93
 
               "       [ username ]\n"), whoami);
 
90
             _("Usage: %1$s [-s shell] [username]\n"
 
91
               "   or: %1$s (--list-shells | --help | --version)\n"),
 
92
             whoami);
94
93
 
95
94
    exit(fp == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
96
95
}
320
319
 */
321
320
static int
322
321
check_shell (char *shell) {
323
 
    int i, c;
 
322
    unsigned int i, c;
324
323
 
325
324
    if (!shell)
326
325
        return -1;