Deleted Added
full compact
print-tftp.c (214478) print-tftp.c (235530)
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

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

94 if (*cp == 't')
95 return;
96
97 switch (opcode) {
98
99 case RRQ:
100 case WRQ:
101 case OACK:
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

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

94 if (*cp == 't')
95 return;
96
97 switch (opcode) {
98
99 case RRQ:
100 case WRQ:
101 case OACK:
102 /*
103 * XXX Not all arpa/tftp.h's specify th_stuff as any
104 * array; use address of th_block instead
105 */
106#ifdef notdef
107 p = (u_char *)tp->th_stuff;
102 p = (u_char *)tp->th_stuff;
108#else
109 p = (u_char *)&tp->th_block;
110#endif
111 putchar(' ');
112 /* Print filename or first option */
113 if (opcode != OACK)
114 putchar('"');
115 i = fn_print(p, snapend);
116 if (opcode != OACK)
117 putchar('"');
118

--- 43 unchanged lines hidden ---
103 putchar(' ');
104 /* Print filename or first option */
105 if (opcode != OACK)
106 putchar('"');
107 i = fn_print(p, snapend);
108 if (opcode != OACK)
109 putchar('"');
110

--- 43 unchanged lines hidden ---