~ubuntu-branches/ubuntu/trusty/nilfs-tools/trusty

« back to all changes in this revision

Viewing changes to bin/chcp.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-08-12 20:42:38 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20110812204238-3i5mnvvmg7amtyjm
Tags: upstream-2.1.0~rc2
ImportĀ upstreamĀ versionĀ 2.1.0~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        nilfs_cno_t cno;
80
80
        char *dev, *modestr, *progname, *endptr;
81
81
        int c, mode, status;
82
 
        unsigned long val;
83
82
#ifdef _GNU_SOURCE
84
83
        int option_index;
85
84
#endif  /* _GNU_SOURCE */
122
121
                dev = NULL;
123
122
        } else {
124
123
                modestr = argv[optind++];
125
 
                val = strtoul(argv[optind], &endptr, CHCP_BASE);
 
124
                strtoul(argv[optind], &endptr, CHCP_BASE);
126
125
                if (*endptr == '\0')
127
126
                        dev = NULL;
128
127
                else