1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/fget/hotfix-1.patch
3 # Copyright (C) 2019 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- fget/fget.c.vanilla 2019-02-07 10:17:45.512424271 +0000
15 +++ fget/fget.c 2019-02-07 10:18:13.596423951 +0000
17 stralloc_cats(request,"\r\n\r\n");
20 -inline int isdigit(char c) {
21 +int isdigit(char c) {
22 return (c>='0' && c<='9');
25 -inline int isresponsecode(char *s) {
26 +int isresponsecode(char *s) {
27 return (isdigit(s[0]) && isdigit(s[1]) && isdigit(s[2]) && (s[3]==' ' || s[3]=='-'));
30 -inline int iscrlf(char *s) {
31 +int iscrlf(char *s) {
32 return *s=='\r' && s[1]=='\n';
35 --- fget/readwrite.h.vanilla 2019-02-07 10:27:17.936417746 +0000
36 +++ fget/readwrite.h 2019-02-07 10:28:03.400417227 +0000
44 extern int read(int fd,void *buf,unsigned int count);
45 extern int write(int fd,const void *buf,unsigned int count);
46 extern int close(int fd);