* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches

throughout to silence compiler.
This commit is contained in:
Corinna Vinschen 2015-02-23 21:00:31 +00:00
parent bef55bb5c3
commit c9baa8a65b
2 changed files with 14 additions and 1 deletions

View File

@ -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>
* Makefile.in: Simplify rule to build dependencies from cygwin dir.

View File

@ -1,6 +1,6 @@
/* pwdgrp.cc: Request account information
Copyright 2014 Red Hat, Inc.
Copyright 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@ -48,6 +48,8 @@ client_request_pwdgrp::pwd_serve ()
case ID_arg:
pwd = getpwuid (_parameters.in.arg.id);
break;
default:
break;
}
if (pwd)
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
@ -79,6 +81,8 @@ client_request_pwdgrp::pwd_serve ()
case ID_arg:
debug_printf ("User <%u> failed", _parameters.in.arg.id);
break;
default:
break;
}
_parameters.out.line[0] = '\0';
msglen (0);
@ -103,6 +107,8 @@ client_request_pwdgrp::grp_serve ()
case ID_arg:
grp = getgrgid (_parameters.in.arg.id);
break;
default:
break;
}
if (grp)
msglen (snprintf (_parameters.out.line, sizeof _parameters.out.line,
@ -130,6 +136,8 @@ client_request_pwdgrp::grp_serve ()
case ID_arg:
debug_printf ("Group <%u> failed", _parameters.in.arg.id);
break;
default:
break;
}
_parameters.out.line[0] = '\0';
msglen (0);