Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: fusl/include/arpa/tftp.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _ARPA_TFTP_H 1 #ifndef _ARPA_TFTP_H
2 #define _ARPA_TFTP_H 2 #define _ARPA_TFTP_H
3 #define SEGSIZE 512 3 #define SEGSIZE 512
4 #define RRQ 01 4 #define RRQ 01
5 #define WRQ 02 5 #define WRQ 02
6 #define DATA 03 6 #define DATA 03
7 #define ACK 04 7 #define ACK 04
8 #define ERROR 05 8 #define ERROR 05
9 struct tftphdr { 9 struct tftphdr {
10 » short th_opcode; 10 short th_opcode;
11 » union { 11 union {
12 » » unsigned short tu_block; 12 unsigned short tu_block;
13 » » short tu_code; 13 short tu_code;
14 » » char tu_stuff[1]; 14 char tu_stuff[1];
15 » } th_u; 15 } th_u;
16 » char th_data[1]; 16 char th_data[1];
17 }; 17 };
18 #define th_block th_u.tu_block 18 #define th_block th_u.tu_block
19 #define th_code th_u.tu_code 19 #define th_code th_u.tu_code
20 #define th_stuff th_u.tu_stuff 20 #define th_stuff th_u.tu_stuff
21 #define th_msg th_data 21 #define th_msg th_data
22 #define EUNDEF 0 22 #define EUNDEF 0
23 #define ENOTFOUND 1 23 #define ENOTFOUND 1
24 #define EACCESS 2 24 #define EACCESS 2
25 #define ENOSPACE 3 25 #define ENOSPACE 3
26 #define EBADOP 4 26 #define EBADOP 4
27 #define EBADID 5 27 #define EBADID 5
28 #define EEXISTS 6 28 #define EEXISTS 6
29 #define ENOUSER 7 29 #define ENOUSER 7
30 #endif 30 #endif
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698