Unified · Split
| @@ -214,7 +214,7 @@ void · 213 unmodified lines | |||
| 214 | main(int argc, char **argv) | 214 | main(int argc, char **argv) |
| 215 | { | 215 | { |
| 216 | Response *r; | 216 | Response *r; |
| 217 | char *s, *t, *u, *url; | 217 | char *s, *t, *u, *url, *prevurl; |
| 218 | int len, wait, pl, fd; | 218 | int len, wait, pl, fd; |
| 219 | Plumbmsg *m; | 219 | Plumbmsg *m; |
| 220 | Biobuf out; | 220 | Biobuf out; |
| @@ -235,6 +235,7 @@ main(int argc, char **argv) · 14 unmodified lines | |||
| 235 | quotefmtinstall(); | 235 | quotefmtinstall(); |
| 236 | Binit(&out, 1, OWRITE); | 236 | Binit(&out, 1, OWRITE); |
| 237 | pl = -1; | 237 | pl = -1; |
| 238 | prevurl = nil; | ||
| 238 | 239 | ||
| 239 | nexturl: | 240 | nexturl: |
| 240 | url = nil; | 241 | url = nil; |
| @@ -305,9 +306,13 @@ nextreq: · 64 unmodified lines | |||
| 305 | if(!wait) | 306 | if(!wait) |
| 306 | exits("failed"); | 307 | exits("failed"); |
| 307 | } | 308 | } |
| 309 | if(prevurl != nil){ | ||
| 310 | Bprint(&out, "\nPrevious: %s\n", prevurl); | ||
| 311 | free(prevurl); | ||
| 312 | } | ||
| 308 | 313 | ||
| 309 | Bflush(&out); | 314 | Bflush(&out); |
| 310 | free(url); | 315 | prevurl = url; |
| 311 | if(wait) | 316 | if(wait) |
| 312 | goto nexturl; | 317 | goto nexturl; |
| 313 | 318 | ||