mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtlogin: remove register keyword
This commit is contained in:
parent
97264ba971
commit
88dd3b2c71
14 changed files with 41 additions and 41 deletions
|
@ -504,7 +504,7 @@ SetLocalAuthorization (struct display *d)
|
||||||
void
|
void
|
||||||
SetAuthorization (struct display *d)
|
SetAuthorization (struct display *d)
|
||||||
{
|
{
|
||||||
register Xauth **auth = d->authorizations;
|
Xauth **auth = d->authorizations;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < d->authNum; i++)
|
for (i = 0; i < d->authNum; i++)
|
||||||
|
@ -866,11 +866,11 @@ DefineSelf (int fd, FILE *file, Xauth *auth)
|
||||||
{
|
{
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
struct ifconf ifc;
|
struct ifconf ifc;
|
||||||
register int n;
|
int n;
|
||||||
int len;
|
int len;
|
||||||
char *addr;
|
char *addr;
|
||||||
int family;
|
int family;
|
||||||
register struct ifreq *ifr;
|
struct ifreq *ifr;
|
||||||
|
|
||||||
ifc.ifc_len = sizeof (buf);
|
ifc.ifc_len = sizeof (buf);
|
||||||
ifc.ifc_buf = buf;
|
ifc.ifc_buf = buf;
|
||||||
|
@ -937,13 +937,13 @@ DefineSelf (int fd, FILE *file, Xauth *auth)
|
||||||
static void
|
static void
|
||||||
DefineSelf (int fd, int file, int auth)
|
DefineSelf (int fd, int file, int auth)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
int len;
|
int len;
|
||||||
caddr_t addr;
|
caddr_t addr;
|
||||||
int family;
|
int family;
|
||||||
|
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
register struct hostent *hp;
|
struct hostent *hp;
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
|
|
|
@ -768,12 +768,12 @@ getGroups ( char *name, struct verify_info *verify, int gid)
|
||||||
int
|
int
|
||||||
passwordExpired( struct verify_info *verify)
|
passwordExpired( struct verify_info *verify)
|
||||||
{
|
{
|
||||||
register struct pr_passwd *pr;
|
struct pr_passwd *pr;
|
||||||
register time_t expiration;
|
time_t expiration;
|
||||||
register time_t last_change;
|
time_t last_change;
|
||||||
time_t expiration_time;
|
time_t expiration_time;
|
||||||
register time_t now;
|
time_t now;
|
||||||
register int passwd_status;
|
int passwd_status;
|
||||||
struct pr_passwd save_data;
|
struct pr_passwd save_data;
|
||||||
struct pr_default *df;
|
struct pr_default *df;
|
||||||
char *ttime;
|
char *ttime;
|
||||||
|
|
|
@ -582,7 +582,7 @@ RegisterHostname (char *name)
|
||||||
struct hostent *hostent;
|
struct hostent *hostent;
|
||||||
struct sockaddr_in in_addr;
|
struct sockaddr_in in_addr;
|
||||||
struct ifconf ifc;
|
struct ifconf ifc;
|
||||||
register struct ifreq *ifr;
|
struct ifreq *ifr;
|
||||||
struct sockaddr broad_addr;
|
struct sockaddr broad_addr;
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
int n;
|
int n;
|
||||||
|
|
|
@ -62,7 +62,7 @@ extern void exit ();
|
||||||
void
|
void
|
||||||
BecomeDaemon( void )
|
BecomeDaemon( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fork so that the process goes into the background automatically. Also
|
* fork so that the process goes into the background automatically. Also
|
||||||
|
|
|
@ -316,7 +316,7 @@ MakeRootCursor( void )
|
||||||
void
|
void
|
||||||
MakeBackground( void )
|
MakeBackground( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get resources first
|
* Get resources first
|
||||||
|
@ -430,7 +430,7 @@ MakeBackground( void )
|
||||||
void
|
void
|
||||||
MakeButtons( void )
|
MakeButtons( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
Dimension width;
|
Dimension width;
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ MakeChooser( void )
|
||||||
void
|
void
|
||||||
MakeDialog( DialogType dtype )
|
MakeDialog( DialogType dtype )
|
||||||
{
|
{
|
||||||
register int i, j;
|
int i, j;
|
||||||
|
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,7 @@ static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int CheckPassword( char *name, char *passwd, struct passwd **ppwd );
|
static int CheckPassword( char *name, char *passwd, struct passwd **ppwd );
|
||||||
static int CountUsers( int added_users) ;
|
static int CountUsers( int added_users) ;
|
||||||
static int CountUsersStrict( char *new_user) ;
|
static int CountUsersStrict( char *new_user) ;
|
||||||
static int PasswordAged( register struct passwd *pw) ;
|
static int PasswordAged( struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ CountUsersStrict( char *new_user )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged( register struct passwd *pw )
|
PasswordAged( struct passwd *pw )
|
||||||
{
|
{
|
||||||
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
||||||
long last_week; /* week after which password must change */
|
long last_week; /* week after which password must change */
|
||||||
|
@ -1357,7 +1357,7 @@ Authenticate( struct display *d, char *name, char *passwd, char **msg )
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int PasswordAged(char *name, register struct passwd *pw) ;
|
static int PasswordAged(char *name, struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1436,7 +1436,7 @@ WriteBtmp( char *name )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged(char *name, register struct passwd *pw )
|
PasswordAged(char *name, struct passwd *pw )
|
||||||
{
|
{
|
||||||
struct userpw *pupw; /* authentication information from getuserpw() */
|
struct userpw *pupw; /* authentication information from getuserpw() */
|
||||||
struct userpw upw; /* working authentication information */
|
struct userpw upw; /* working authentication information */
|
||||||
|
@ -1832,7 +1832,7 @@ tsm_check_login(uid_t uid)
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int PasswordAged( register struct passwd *pw) ;
|
static int PasswordAged( struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1896,7 +1896,7 @@ WriteBtmp( char *name )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged( register struct passwd *pw )
|
PasswordAged( struct passwd *pw )
|
||||||
{
|
{
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -592,7 +592,7 @@ MakeLangAbort( int arg )
|
||||||
void
|
void
|
||||||
MakeLangList( void )
|
MakeLangList( void )
|
||||||
{
|
{
|
||||||
register int i, j;
|
int i, j;
|
||||||
|
|
||||||
char *lang[500]; /* sort list for languages */
|
char *lang[500]; /* sort list for languages */
|
||||||
int nlang; /* total number of languages */
|
int nlang; /* total number of languages */
|
||||||
|
|
|
@ -449,8 +449,8 @@ login_defaults(
|
||||||
struct display *d )
|
struct display *d )
|
||||||
{
|
{
|
||||||
extern int defcntl();
|
extern int defcntl();
|
||||||
register int flags;
|
int flags;
|
||||||
register char *ptr;
|
char *ptr;
|
||||||
char *Def_path;
|
char *Def_path;
|
||||||
char *final_path = malloc(MAXPATHLEN);
|
char *final_path = malloc(MAXPATHLEN);
|
||||||
char *element;
|
char *element;
|
||||||
|
|
|
@ -198,7 +198,7 @@ static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int CheckPassword( char *name, char *passwd, struct passwd **ppwd );
|
static int CheckPassword( char *name, char *passwd, struct passwd **ppwd );
|
||||||
static int CountUsers( int added_users) ;
|
static int CountUsers( int added_users) ;
|
||||||
static int CountUsersStrict( char *new_user) ;
|
static int CountUsersStrict( char *new_user) ;
|
||||||
static int PasswordAged( register struct passwd *pw) ;
|
static int PasswordAged( struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -469,7 +469,7 @@ CountUsersStrict( char *new_user )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged( register struct passwd *pw )
|
PasswordAged( struct passwd *pw )
|
||||||
{
|
{
|
||||||
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
||||||
long last_week; /* week after which password must change */
|
long last_week; /* week after which password must change */
|
||||||
|
@ -1054,7 +1054,7 @@ WriteBtmp( char *name )
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int PasswordAged( register struct passwd *pw) ;
|
static int PasswordAged( struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1117,7 +1117,7 @@ WriteBtmp( char *name )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged( register struct passwd *pw )
|
PasswordAged( struct passwd *pw )
|
||||||
{
|
{
|
||||||
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
long change_week; /* week password was changed (1/1/70 = Week 0) */
|
||||||
long last_week; /* week after which password must change */
|
long last_week; /* week after which password must change */
|
||||||
|
@ -1300,7 +1300,7 @@ Verify( char *name, char *passwd )
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int PasswordAged(char *name, register struct passwd *pw) ;
|
static int PasswordAged(char *name, struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1363,7 +1363,7 @@ WriteBtmp( char *name )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged(char *name, register struct passwd *pw )
|
PasswordAged(char *name, struct passwd *pw )
|
||||||
{
|
{
|
||||||
struct userpw *pupw; /* authentication information from getuserpw() */
|
struct userpw *pupw; /* authentication information from getuserpw() */
|
||||||
struct userpw upw; /* working authentication information */
|
struct userpw upw; /* working authentication information */
|
||||||
|
@ -1579,7 +1579,7 @@ Verify( char *name, char *passwd )
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
static void Audit( struct passwd *p, char *msg, int errnum) ;
|
||||||
static int PasswordAged( register struct passwd *pw) ;
|
static int PasswordAged( struct passwd *pw) ;
|
||||||
static void WriteBtmp( char *name) ;
|
static void WriteBtmp( char *name) ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1642,7 +1642,7 @@ WriteBtmp( char *name )
|
||||||
#define SECONDS_IN_WEEK 604800L
|
#define SECONDS_IN_WEEK 604800L
|
||||||
|
|
||||||
static int
|
static int
|
||||||
PasswordAged( register struct passwd *pw )
|
PasswordAged( struct passwd *pw )
|
||||||
{
|
{
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -426,7 +426,7 @@ EditPasswdCB(Widget w, XtPointer client, XtPointer call_data)
|
||||||
XmTextVerifyPtr cbs = (XmTextVerifyPtr) call_data;
|
XmTextVerifyPtr cbs = (XmTextVerifyPtr) call_data;
|
||||||
int i;
|
int i;
|
||||||
static char buffer[MAXPATHLEN];
|
static char buffer[MAXPATHLEN];
|
||||||
register char *s, *t;
|
char *s, *t;
|
||||||
|
|
||||||
#ifdef VG_TRACE
|
#ifdef VG_TRACE
|
||||||
vg_TRACE_EXECUTION("main: entered EditPasswdCB ...");
|
vg_TRACE_EXECUTION("main: entered EditPasswdCB ...");
|
||||||
|
|
|
@ -443,7 +443,7 @@ compareLangDesc(
|
||||||
void
|
void
|
||||||
MakeLangMenu( void )
|
MakeLangMenu( void )
|
||||||
{
|
{
|
||||||
register int i, k;
|
int i, k;
|
||||||
char cblab[MAX_NAME_LEN]; /* pushbutton label */
|
char cblab[MAX_NAME_LEN]; /* pushbutton label */
|
||||||
int nlang; /* total number of languages */
|
int nlang; /* total number of languages */
|
||||||
int nlangMenus; /* number of language sub-menus */
|
int nlangMenus; /* number of language sub-menus */
|
||||||
|
|
|
@ -111,7 +111,7 @@ static XtResource logoResources[] = {
|
||||||
void
|
void
|
||||||
MakeLogo( void )
|
MakeLogo( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
char *logoFile; /* name of logo bitmap file */
|
char *logoFile; /* name of logo bitmap file */
|
||||||
|
|
||||||
|
|
|
@ -765,7 +765,7 @@ MakeRootCursor( void )
|
||||||
static void
|
static void
|
||||||
MakeBackground( void )
|
MakeBackground( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
#ifdef VG_TRACE
|
#ifdef VG_TRACE
|
||||||
vg_TRACE_EXECUTION("MakeBackground: entered ...");
|
vg_TRACE_EXECUTION("MakeBackground: entered ...");
|
||||||
|
@ -1059,7 +1059,7 @@ char *temp_p;
|
||||||
static void
|
static void
|
||||||
MakeButtons( void )
|
MakeButtons( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
Dimension max_width; /* maximum width of a set of widgets */
|
Dimension max_width; /* maximum width of a set of widgets */
|
||||||
Dimension max_height; /* maximum height of a set of widgets */
|
Dimension max_height; /* maximum height of a set of widgets */
|
||||||
|
@ -1200,7 +1200,7 @@ MakeButtons( void )
|
||||||
void
|
void
|
||||||
MakeDialog( DialogType dtype )
|
MakeDialog( DialogType dtype )
|
||||||
{
|
{
|
||||||
register int i, j;
|
int i, j;
|
||||||
|
|
||||||
int width;
|
int width;
|
||||||
|
|
||||||
|
@ -1481,7 +1481,7 @@ static XtResource greetResources[] = {
|
||||||
static void
|
static void
|
||||||
MakeGreeting( void )
|
MakeGreeting( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
char *greetmsg;
|
char *greetmsg;
|
||||||
char host[128];
|
char host[128];
|
||||||
|
@ -1678,7 +1678,7 @@ MakeGreeting( void )
|
||||||
static void
|
static void
|
||||||
MakeLogin( void )
|
MakeLogin( void )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
LoginTextPtr textdata;
|
LoginTextPtr textdata;
|
||||||
XtTranslations textTable;
|
XtTranslations textTable;
|
||||||
|
|
|
@ -145,7 +145,7 @@ static XmTextScanType sarray[] = {XmSELECT_POSITION};
|
||||||
int
|
int
|
||||||
InitArg( WidgetType wtype )
|
InitArg( WidgetType wtype )
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue