coding style II

This commit is contained in:
albert 2002-10-09 22:01:55 +00:00
parent af89241571
commit 64808793eb
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@
#endif #endif
static char saved_personality_text[] = "You found a bug!"; static char *saved_personality_text = "You found a bug!";
int all_processes = -1; int all_processes = -1;
char *bsd_j_format = (char *)0xdeadbeef; char *bsd_j_format = (char *)0xdeadbeef;

4
w.c
View File

@ -99,8 +99,8 @@ static time_t idletime(char *tty) {
/***** 7 character formatted login time */ /***** 7 character formatted login time */
static void print_logintime(time_t logt, FILE* fout) { static void print_logintime(time_t logt, FILE* fout) {
char weekday[4][] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }, char weekday[][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" },
month [4][] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", month [][4] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec" }; "Aug", "Sep", "Oct", "Nov", "Dec" };
time_t curt; time_t curt;
struct tm *logtm, *curtm; struct tm *logtm, *curtm;