On ppc, char is unsigned and getopt()/getopt_long() returning -1 (= end of
arguments) is translated to 255 and results in 'Invalid command line option'.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
{
int ret = 0;
int i, j;
- char c;
+ int c;
/* Structure to get GID from group name */
struct group *grp = NULL;
{
int ret = 0;
int i, j;
- char c;
+ int c;
int flags = 0;
int final_ret = 0;
int capacity = 0;
uid_t uid;
gid_t gid;
pid_t pid;
- char c;
+ int c;
struct cgroup_group_spec *cgroup_list[CG_HIER_MAX];
if (argc < 2) {