Skip to content

Commit 1abdcef

Browse files
committed
Fix compile issues (Issue #5)
1 parent 90c8047 commit 1abdcef

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

commands/lp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// "lp" and "lpr" commands for CUPS.
33
//
4-
// Copyright © 2021-2023 by OpenPrinting.
4+
// Copyright © 2021-2025 by OpenPrinting.
55
// Copyright © 2007-2021 by Apple Inc.
66
// Copyright © 1997-2007 by Easy Software Products.
77
//
@@ -240,7 +240,7 @@ main(int argc, // I - Number of command-line arguments
240240
case 'o' : // Option
241241
if (opt[1] != '\0')
242242
{
243-
num_options = cupsParseOptions(opt + 1, num_options, &options);
243+
num_options = cupsParseOptions(opt + 1, /*end*/NULL, num_options, &options);
244244
opt += strlen(opt) - 1;
245245
}
246246
else
@@ -253,7 +253,7 @@ main(int argc, // I - Number of command-line arguments
253253
return (usage(stderr, command));
254254
}
255255

256-
num_options = cupsParseOptions(argv[i], num_options, &options);
256+
num_options = cupsParseOptions(argv[i], /*end*/NULL, num_options, &options);
257257
}
258258
break;
259259

commands/lpadmin.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// "lpadmin" command for CUPS.
33
//
4-
// Copyright © 2021-2023 by OpenPrinting.
4+
// Copyright © 2021-2025 by OpenPrinting.
55
// Copyright © 2007-2021 by Apple Inc.
66
// Copyright © 1997-2006 by Easy Software Products.
77
//
@@ -277,7 +277,7 @@ main(int argc, // I - Number of command-line arguments
277277
case 'o' : // -o OPTION=VALUE
278278
if (opt[1] != '\0')
279279
{
280-
num_options = cupsParseOptions(opt + 1, num_options, &options);
280+
num_options = cupsParseOptions(opt + 1, /*end*/NULL, num_options, &options);
281281
opt += strlen(opt) - 1;
282282
}
283283
else
@@ -290,7 +290,7 @@ main(int argc, // I - Number of command-line arguments
290290
return (usage(stderr));
291291
}
292292

293-
num_options = cupsParseOptions(argv[i], num_options, &options);
293+
num_options = cupsParseOptions(argv[i], /*end*/NULL, num_options, &options);
294294
}
295295
break;
296296

commands/lpr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// "lpr" command for CUPS.
33
//
4-
// Copyright © 2021-2023 by OpenPrinting.
4+
// Copyright © 2021-2025 by OpenPrinting.
55
// Copyright © 2007-2019 by Apple Inc.
66
// Copyright © 1997-2007 by Easy Software Products.
77
//
@@ -150,7 +150,7 @@ main(int argc, // I - Number of command-line arguments
150150
case 'o' : // Option
151151
if (opt[1] != '\0')
152152
{
153-
num_options = cupsParseOptions(opt + 1, num_options, &options);
153+
num_options = cupsParseOptions(opt + 1, /*end*/NULL, num_options, &options);
154154
opt += strlen(opt) - 1;
155155
}
156156
else
@@ -162,7 +162,7 @@ main(int argc, // I - Number of command-line arguments
162162
usage();
163163
}
164164

165-
num_options = cupsParseOptions(argv[i], num_options, &options);
165+
num_options = cupsParseOptions(argv[i], /*end*/NULL, num_options, &options);
166166
}
167167
break;
168168

daemon/transform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// Transform support for cupslocald.
33
//
4-
// Copyright © 2023-2024 by OpenPrinting.
4+
// Copyright © 2023-2025 by OpenPrinting.
55
//
66
// Licensed under Apache License v2.0. See the file "LICENSE" for more
77
// information.
@@ -375,7 +375,7 @@ process_attr_message(
375375

376376

377377
// Grab attributes from the message line...
378-
num_options = cupsParseOptions(message, num_options, &options);
378+
num_options = cupsParseOptions(message, /*end*/NULL, num_options, &options);
379379

380380
if ((value = cupsGetIntegerOption("job-impressions", num_options, options)) > 0)
381381
papplJobSetImpressions(job, value);

0 commit comments

Comments
 (0)