diff options
| author | 2024-05-08 10:27:30 +0200 | |
|---|---|---|
| committer | 2024-05-08 10:27:30 +0200 | |
| commit | dc74cac6c9c3f6e9edc848381422a1f124abac73 (patch) | |
| tree | afa60f85839300e03affa44ed792d79cbe9626cd /main.c | |
| parent | New function search_by_content(). (diff) | |
| download | penes-snac2-dc74cac6c9c3f6e9edc848381422a1f124abac73.tar.gz penes-snac2-dc74cac6c9c3f6e9edc848381422a1f124abac73.tar.xz penes-snac2-dc74cac6c9c3f6e9edc848381422a1f124abac73.zip | |
Added a timeout flag to search_by_content().
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -377,9 +377,10 @@ int main(int argc, char *argv[]) | |||
| 377 | 377 | ||
| 378 | if (strcmp(cmd, "search") == 0) { /** **/ | 378 | if (strcmp(cmd, "search") == 0) { /** **/ |
| 379 | xs *tl = timeline_simple_list(&snac, "private", 0, XS_ALL); | 379 | xs *tl = timeline_simple_list(&snac, "private", 0, XS_ALL); |
| 380 | int to; | ||
| 380 | 381 | ||
| 381 | /* 'url' contains the regex */ | 382 | /* 'url' contains the regex */ |
| 382 | xs *r = search_by_content(&snac, tl, url, 10); | 383 | xs *r = search_by_content(&snac, tl, url, 10, &to); |
| 383 | 384 | ||
| 384 | int c = 0; | 385 | int c = 0; |
| 385 | char *v; | 386 | char *v; |