blob: c84c5b105da35852e57232113c5488003c6d33e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-aj,v 1.1 2003/09/21 09:15:31 jmc Exp $
--- tftpsubs.c.orig 2003-09-21 04:09:09.000000000 +0000
+++ tftpsubs.c 2003-09-21 04:10:08.000000000 +0000
@@ -39,11 +39,11 @@
#include <arpa/tftp.h>
#include <stdio.h>
-#define PKTSIZE SEGSIZE+4 /* should be moved to tftp.h */
+#define BUF_PKTSIZE SEGSIZE+4 /* should be moved to tftp.h */
struct bf {
int counter; /* size of data in buffer, or flag */
- char buf[PKTSIZE]; /* room for data packet */
+ char buf[BUF_PKTSIZE]; /* room for data packet */
} bfs[2];
/* Values for bf.counter */
@@ -233,7 +233,7 @@
int f; /* socket to flush */
{
int i, j = 0;
- char rbuf[PKTSIZE];
+ char rbuf[BUF_PKTSIZE];
struct sockaddr_in from;
int fromlen;
|