mirror of https://github.com/xzeldon/htop.git
minor change to improve portability
This commit is contained in:
parent
3e265ce4ab
commit
b288eb88c0
2
htop.c
2
htop.c
|
@ -285,7 +285,7 @@ int main(int argc, char** argv) {
|
|||
setlocale(LC_CTYPE, getenv("LC_ALL"));
|
||||
|
||||
/* Parse arguments */
|
||||
while ((opt = getopt_long_only(argc, argv, "hvCs:d:u:", long_opts, &opti))) {
|
||||
while ((opt = getopt_long(argc, argv, "hvCs:d:u:", long_opts, &opti))) {
|
||||
if (opt == EOF) break;
|
||||
switch (opt) {
|
||||
case 'h':
|
||||
|
|
Loading…
Reference in New Issue