From 068ba17e2183286e9e061b1a3566a26253e40bcf Mon Sep 17 00:00:00 2001
From: Yang Tse <yangsita@gmail.com>
Date: Thu, 23 Oct 2008 14:34:08 +0000
Subject: [PATCH] moved some definitions from tftp.h to tftpd.c

---
 tests/server/tftp.h  | 6 ------
 tests/server/tftpd.c | 5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/tests/server/tftp.h b/tests/server/tftp.h
index b991875cce..d6c7acec5d 100644
--- a/tests/server/tftp.h
+++ b/tests/server/tftp.h
@@ -46,12 +46,6 @@ struct tftphdr {
 #define th_code  th_block
 #define th_msg   th_data
 
-#define opcode_RRQ   1
-#define opcode_WRQ   2
-#define opcode_DATA  3
-#define opcode_ACK   4
-#define opcode_ERROR 5
-
 #define EUNDEF    0
 #define ENOTFOUND 1
 #define EACCESS   2
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 8675675602..364cddc3aa 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -118,6 +118,11 @@ static int writeit(struct testcase *test, struct tftphdr **dpp, int ct,
                    int convert);
 static void mysignal(int, void (*func)(int));
 
+#define opcode_RRQ   1
+#define opcode_WRQ   2
+#define opcode_DATA  3
+#define opcode_ACK   4
+#define opcode_ERROR 5
 
 #define TIMEOUT         5
 
-- 
GitLab