Deleted Added
full compact
matchjobs.c (100203) matchjobs.c (101677)
1/*
2 * ------+---------+---------+---------+---------+---------+---------+---------*
3 * Copyright (c) 2002 - Garance Alistair Drosehn <gad@FreeBSD.org>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29 * official policies, either expressed or implied, of the FreeBSD Project
30 * or FreeBSD, Inc.
31 *
32 * ------+---------+---------+---------+---------+---------+---------+---------*
33 */
34
35#ifndef lint
36static const char rcsid[] =
1/*
2 * ------+---------+---------+---------+---------+---------+---------+---------*
3 * Copyright (c) 2002 - Garance Alistair Drosehn <gad@FreeBSD.org>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 20 unchanged lines hidden (view full) ---

29 * official policies, either expressed or implied, of the FreeBSD Project
30 * or FreeBSD, Inc.
31 *
32 * ------+---------+---------+---------+---------+---------+---------+---------*
33 */
34
35#ifndef lint
36static const char rcsid[] =
37 "$FreeBSD: head/usr.sbin/lpr/common_source/matchjobs.c 100203 2002-07-17 00:51:19Z gad $";
37 "$FreeBSD: head/usr.sbin/lpr/common_source/matchjobs.c 101677 2002-08-11 13:05:30Z schweikh $";
38#endif /* not lint */
39
40/*
41 * movejobs.c - The lpc commands which move jobs around.
42 */
43
44#include <sys/file.h>
45#include <sys/param.h>

--- 276 unchanged lines hidden (view full) ---

322 goto bad_input;
323 jsinfo->endrange = jobnum;
324 }
325
326 /*
327 * If there is anything left in the numstr, and if the
328 * original string did not include a userid or a hostname,
329 * then this might be the ancient form of '\d+hostname'
38#endif /* not lint */
39
40/*
41 * movejobs.c - The lpc commands which move jobs around.
42 */
43
44#include <sys/file.h>
45#include <sys/param.h>

--- 276 unchanged lines hidden (view full) ---

322 goto bad_input;
323 jsinfo->endrange = jobnum;
324 }
325
326 /*
327 * If there is anything left in the numstr, and if the
328 * original string did not include a userid or a hostname,
329 * then this might be the ancient form of '\d+hostname'
330 * (with no seperator between jobnum and hostname). Accept
330 * (with no separator between jobnum and hostname). Accept
331 * that for backwards compatibility, but otherwise any
332 * remaining characters mean a user-error. Note that the
333 * ancient form accepted only a single number, but this
334 * will also accept a range of numbers.
335 */
336 if (*numstr != '\0') {
337 if (atsign != NULL)
338 goto bad_input;

--- 247 unchanged lines hidden ---
331 * that for backwards compatibility, but otherwise any
332 * remaining characters mean a user-error. Note that the
333 * ancient form accepted only a single number, but this
334 * will also accept a range of numbers.
335 */
336 if (*numstr != '\0') {
337 if (atsign != NULL)
338 goto bad_input;

--- 247 unchanged lines hidden ---