1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../fget/hotfix.patch
5 # Copyright (C) 2019 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- fget/fget.c.vanilla 2019-02-07 10:17:45.512424271 +0000
18 +++ fget/fget.c 2019-02-07 10:18:13.596423951 +0000
20 stralloc_cats(request,"\r\n\r\n");
23 -inline int isdigit(char c) {
24 +int isdigit(char c) {
25 return (c>='0' && c<='9');
28 -inline int isresponsecode(char *s) {
29 +int isresponsecode(char *s) {
30 return (isdigit(s[0]) && isdigit(s[1]) && isdigit(s[2]) && (s[3]==' ' || s[3]=='-'));
33 -inline int iscrlf(char *s) {
34 +int iscrlf(char *s) {
35 return *s=='\r' && s[1]=='\n';
38 --- fget/readwrite.h.vanilla 2019-02-07 10:27:17.936417746 +0000
39 +++ fget/readwrite.h 2019-02-07 10:28:03.400417227 +0000
47 extern int read(int fd,void *buf,unsigned int count);
48 extern int write(int fd,const void *buf,unsigned int count);
49 extern int close(int fd);