diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-26 11:41:37 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 12:21:27 +0000 |
| commit | 8169827cc9aedb0d366a6a4d642d130032226763 (patch) | |
| tree | 64aecbad0fe922e2d2057eb8557065ea899a54a3 /util/libreboot-utils/lottery.c | |
| parent | 10ecf32e33ca6a099dd9fe206e070584eb62b629 (diff) | |
further cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lottery.c')
| -rw-r--r-- | util/libreboot-utils/lottery.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c index 4c3b0f70..2214ce5a 100644 --- a/util/libreboot-utils/lottery.c +++ b/util/libreboot-utils/lottery.c @@ -12,7 +12,9 @@ int main(int argc, char *argv[]) { + char *s; int lucky; + #if defined(__OpenBSD__) && defined(OpenBSD) #if (OpenBSD) >= 509 if (pledge("stdio", NULL) == -1) @@ -21,7 +23,7 @@ main(int argc, char *argv[]) #endif setvbuf(stdout, NULL, _IONBF, 0); - lucky = win_lottery(); + lucky = win_lottery(&s); printf("%s\n", lucky ? "You won!" : "You lose! Sorry!"); return lucky ? EXIT_SUCCESS : EXIT_FAILURE; |
