Bugzilla – Attachment 105 Details for
Bug 257
sftp and 32 bit integar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
i thought about something like this
d (text/plain), 1.23 KB, created by
Markus Friedl
on 2002-05-28 05:08:05 AEST
(
hide
)
Description:
i thought about something like this
Filename:
MIME Type:
Creator:
Markus Friedl
Created:
2002-05-28 05:08:05 AEST
Size:
1.23 KB
patch
obsolete
>? DIF >? U >? UU >? X >Index: bufaux.c >=================================================================== >RCS file: /cvs/openssh_cvs/bufaux.c,v >retrieving revision 1.29 >diff -u -r1.29 bufaux.c >--- bufaux.c 23 Apr 2002 10:42:37 -0000 1.29 >+++ bufaux.c 27 May 2002 19:07:09 -0000 >@@ -165,6 +165,14 @@ > buffer_get(buffer, (char *) buf, 8); > return GET_64BIT(buf); > } >+#else >+u_int32_t >+buffer_get_int64(Buffer *b) >+{ >+ if (buffer_get_int(b) > 0) >+ fatal("values > 32 bit not supported"); >+ return buffer_get_int(b); >+} > #endif > > /* >@@ -193,6 +201,13 @@ > char buf[8]; > PUT_64BIT(buf, value); > buffer_append(buffer, buf, 8); >+} >+#else >+void >+buffer_put_int64(Buffer *buffer, u_int32_t value) >+{ >+ buffer_put_int(buffer, 0); >+ buffer_put_int(buffer, value); > } > #endif > >Index: defines.h >=================================================================== >RCS file: /cvs/openssh_cvs/defines.h,v >retrieving revision 1.89 >diff -u -r1.89 defines.h >--- defines.h 25 Apr 2002 17:56:07 -0000 1.89 >+++ defines.h 27 May 2002 19:07:09 -0000 >@@ -211,6 +211,10 @@ > # define HAVE_LONG_LONG_INT 1 > #endif > >+#ifndef HAVE_INT64_T >+typedef u_int32_t u_int64_t; >+#endif >+ > #ifndef HAVE_U_CHAR > typedef unsigned char u_char; > # define HAVE_U_CHAR
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257
: 105 |
106