Skip to content

Commit

Permalink
wait only 0.1 sec on accepting cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
shinh authored and macks committed Mar 14, 2011
1 parent d76ed4d commit d21afe4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ disp_err_message(char *s, int redraw_current)
}

void
disp_message_nsec(char *s, int redraw_current, int sec, int purge, int mouse)
disp_message_nsec(char *s, int redraw_current, float sec, int purge, int mouse)
{
if (QuietMessage)
return;
Expand Down
8 changes: 4 additions & 4 deletions file.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,12 +844,12 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
int err;
if (show_cookie) {
if (flag & COO_SECURE)
disp_message_nsec("Received a secured cookie", FALSE, 1,
TRUE, FALSE);
disp_message_nsec("Received a secured cookie",
FALSE, 0.1, TRUE, FALSE);
else
disp_message_nsec(Sprintf("Received cookie: %s=%s",
name->ptr, value->ptr)->ptr,
FALSE, 1, TRUE, FALSE);
name->ptr, value->ptr)->ptr,
FALSE, 0.1, TRUE, FALSE);
}
err =
add_cookie(pu, name, value, expires, domain, path, flag,
Expand Down
4 changes: 2 additions & 2 deletions proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ extern void record_err_message(char *s);
extern Buffer *message_list_panel(void);
extern void message(char *s, int return_x, int return_y);
extern void disp_err_message(char *s, int redraw_current);
extern void disp_message_nsec(char *s, int redraw_current, int sec, int purge,
extern void disp_message_nsec(char *s, int redraw_current, float sec, int purge,
int mouse);
extern void disp_message(char *s, int redraw_current);
#ifdef USE_MOUSE
Expand Down Expand Up @@ -497,7 +497,7 @@ extern void flush_tty(void);
extern void toggle_stand(void);
extern char getch(void);
extern void bell(void);
extern int sleep_till_anykey(int sec, int purge);
extern int sleep_till_anykey(float sec, int purge);
#ifdef USE_IMAGE
extern void touch_cursor();
#endif
Expand Down
4 changes: 2 additions & 2 deletions terms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ skip_escseq(void)
}

int
sleep_till_anykey(int sec, int purge)
sleep_till_anykey(float sec, int purge)
{
fd_set rfd;
struct timeval tim;
Expand All @@ -1994,7 +1994,7 @@ sleep_till_anykey(int sec, int purge)
term_raw();

tim.tv_sec = sec;
tim.tv_usec = 0;
tim.tv_usec = (sec - (int)sec) * 1000000;

FD_ZERO(&rfd);
FD_SET(tty, &rfd);
Expand Down

0 comments on commit d21afe4

Please sign in to comment.