* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches
throughout to silence compiler.
This commit is contained in:
parent
bef55bb5c3
commit
c9baa8a65b
@ -1,3 +1,8 @@
|
|||||||
|
2015-02-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches
|
||||||
|
throughout to silence compiler.
|
||||||
|
|
||||||
2015-01-28 Corinna Vinschen <corinna@vinschen.de>
|
2015-01-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* Makefile.in: Simplify rule to build dependencies from cygwin dir.
|
* Makefile.in: Simplify rule to build dependencies from cygwin dir.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* pwdgrp.cc: Request account information
|
/* pwdgrp.cc: Request account information
|
||||||
|
|
||||||
Copyright 2014 Red Hat, Inc.
|
Copyright 2014, 2015 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -48,6 +48,8 @@ client_request_pwdgrp::pwd_serve ()
|
|||||||
case ID_arg:
|
case ID_arg:
|
||||||
pwd = getpwuid (_parameters.in.arg.id);
|
pwd = getpwuid (_parameters.in.arg.id);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (pwd)
|
if (pwd)
|
||||||
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
|
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
|
||||||
@ -79,6 +81,8 @@ client_request_pwdgrp::pwd_serve ()
|
|||||||
case ID_arg:
|
case ID_arg:
|
||||||
debug_printf ("User <%u> failed", _parameters.in.arg.id);
|
debug_printf ("User <%u> failed", _parameters.in.arg.id);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
_parameters.out.line[0] = '\0';
|
_parameters.out.line[0] = '\0';
|
||||||
msglen (0);
|
msglen (0);
|
||||||
@ -103,6 +107,8 @@ client_request_pwdgrp::grp_serve ()
|
|||||||
case ID_arg:
|
case ID_arg:
|
||||||
grp = getgrgid (_parameters.in.arg.id);
|
grp = getgrgid (_parameters.in.arg.id);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (grp)
|
if (grp)
|
||||||
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
|
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
|
||||||
@ -130,6 +136,8 @@ client_request_pwdgrp::grp_serve ()
|
|||||||
case ID_arg:
|
case ID_arg:
|
||||||
debug_printf ("Group <%u> failed", _parameters.in.arg.id);
|
debug_printf ("Group <%u> failed", _parameters.in.arg.id);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
_parameters.out.line[0] = '\0';
|
_parameters.out.line[0] = '\0';
|
||||||
msglen (0);
|
msglen (0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user