mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
added RISC OS file name code and casts
This commit is contained in:
parent
60becb0597
commit
e6a3c08e27
@ -1,3 +1,10 @@
|
|||||||
|
2002-01-02 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
|
* gpgsplit.c [__riscos__]: Added RISC OS specific file name
|
||||||
|
code.
|
||||||
|
|
||||||
|
* gpgsplit.c (write_part): Introduced two explicit casts.
|
||||||
|
|
||||||
2001-12-21 David Shaw <dshaw@jabberwocky.com>
|
2001-12-21 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* gpgsplit.c (pkttype_to_string): PKT_PHOTO_ID -> PKT_ATTRIBUTE
|
* gpgsplit.c (pkttype_to_string): PKT_PHOTO_ID -> PKT_ATTRIBUTE
|
||||||
|
@ -34,7 +34,11 @@
|
|||||||
#include <fcntl.h> /* for setmode() */
|
#include <fcntl.h> /* for setmode() */
|
||||||
#endif
|
#endif
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
#ifdef __riscos__
|
||||||
|
#include <unixlib/local.h>
|
||||||
|
#endif /* __riscos__ */
|
||||||
|
|
||||||
|
#define INCLUDED_BY_MAIN_MODULE 1
|
||||||
#include "../g10/packet.h"
|
#include "../g10/packet.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
@ -96,6 +100,10 @@ main( int argc, char **argv )
|
|||||||
{
|
{
|
||||||
ARGPARSE_ARGS pargs;
|
ARGPARSE_ARGS pargs;
|
||||||
|
|
||||||
|
#ifdef __riscos__
|
||||||
|
/* set global RISC OS specific properties */
|
||||||
|
__riscosify_control = __RISCOSIFY_NO_PROCESS;
|
||||||
|
#endif /* __riscos__ */
|
||||||
#ifdef HAVE_DOSISH_SYSTEM
|
#ifdef HAVE_DOSISH_SYSTEM
|
||||||
setmode( fileno(stdin), O_BINARY );
|
setmode( fileno(stdin), O_BINARY );
|
||||||
setmode( fileno(stdout), O_BINARY );
|
setmode( fileno(stdout), O_BINARY );
|
||||||
@ -344,7 +352,7 @@ write_part ( const char *fname, FILE *fpin, unsigned long pktlen,
|
|||||||
if (zs.avail_in < inbufsize) {
|
if (zs.avail_in < inbufsize) {
|
||||||
n = zs.avail_in;
|
n = zs.avail_in;
|
||||||
if (!n)
|
if (!n)
|
||||||
zs.next_in = inbuf;
|
zs.next_in = (Bytef *) inbuf;
|
||||||
count = inbufsize - n;
|
count = inbufsize - n;
|
||||||
for (nread=0;
|
for (nread=0;
|
||||||
nread < count && (c=getc (fpin)) != EOF;
|
nread < count && (c=getc (fpin)) != EOF;
|
||||||
@ -358,7 +366,7 @@ write_part ( const char *fname, FILE *fpin, unsigned long pktlen,
|
|||||||
}
|
}
|
||||||
zs.avail_in = n;
|
zs.avail_in = n;
|
||||||
}
|
}
|
||||||
zs.next_out = outbuf;
|
zs.next_out = (Bytef *) outbuf;
|
||||||
zs.avail_out = outbufsize;
|
zs.avail_out = outbufsize;
|
||||||
|
|
||||||
if (!zinit_done) {
|
if (!zinit_done) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user