mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
x11-clocks/wlclock: unbreak long options
$ wlclock --corner-radius 90 ERROR: Radius configuration requires one or four arguments. Reported by: S. R. Gal (private mail)
This commit is contained in:
parent
ff63dd197e
commit
d28e388a9a
2 changed files with 14 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
PORTNAME= wlclock
|
PORTNAME= wlclock
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 1.0.1
|
DISTVERSION= 1.0.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= x11-clocks wayland
|
CATEGORIES= x11-clocks wayland
|
||||||
MASTER_SITES= https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
|
MASTER_SITES= https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
|
||||||
|
|
||||||
|
|
13
x11-clocks/wlclock/files/patch-src_wlclock.c
Normal file
13
x11-clocks/wlclock/files/patch-src_wlclock.c
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
https://lists.sr.ht/~leon_plickat/public-inbox/patches/54271
|
||||||
|
|
||||||
|
--- src/wlclock.c.orig 2021-12-30 16:22:36 UTC
|
||||||
|
+++ src/wlclock.c
|
||||||
|
@@ -330,7 +330,7 @@ static bool handle_command_flags (int argc, char *argv
|
||||||
|
int opt, args;
|
||||||
|
extern int optind;
|
||||||
|
extern char *optarg;
|
||||||
|
- while ( (opt = getopt_long(argc, argv, "hvV", opts, &optind)) != -1 ) switch (opt)
|
||||||
|
+ while ( (opt = getopt_long(argc, argv, "hvV", opts, NULL)) != -1 ) switch (opt)
|
||||||
|
{
|
||||||
|
case 'h':
|
||||||
|
fputs(usage, stderr);
|
Loading…
Add table
Reference in a new issue