1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-30 02:32:46 +02:00

Add missing stub, fixed comment typos

This commit is contained in:
Werner Koch 2000-12-28 19:32:55 +00:00
parent 94c45b7ff3
commit 9b12847f25
4 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
* signal.c (got_fatal_signal): Remove lockfiles here because the * signal.c (got_fatal_signal): Remove lockfiles here because the
atexit stuff does not work due to the use of raise. Suggested by atexit stuff does not work due to the use of raise. Suggested by
Peter Fales. Peter Fales.
* gpgv.c (remove_lockfiles): New stub.
2000-12-19 Werner Koch <wk@gnupg.org> 2000-12-19 Werner Koch <wk@gnupg.org>

View File

@ -358,6 +358,7 @@ void disable_dotlock(void) {}
DOTLOCK create_dotlock( const char *file_to_lock ) { return NULL; } DOTLOCK create_dotlock( const char *file_to_lock ) { return NULL; }
int make_dotlock( DOTLOCK h, long timeout ) { return 0;} int make_dotlock( DOTLOCK h, long timeout ) { return 0;}
int release_dotlock( DOTLOCK h ) {return 0;} int release_dotlock( DOTLOCK h ) {return 0;}
void remove_lockfiles(void) {}

View File

@ -143,7 +143,7 @@ add_gpg_control( CTX c, PACKET *pkt )
} }
else if ( pkt->pkt.gpg_control->control == 2 ) { else if ( pkt->pkt.gpg_control->control == 2 ) {
/* Pipemode control packet */ /* Pipemode control packet */
#warning We have to do some sanit checks all over the place #warning We have to do some sanity checks all over the place
if ( pkt->pkt.gpg_control->datalen < 2 ) if ( pkt->pkt.gpg_control->datalen < 2 )
log_fatal ("invalid pipemode control packet length\n"); log_fatal ("invalid pipemode control packet length\n");
if (pkt->pkt.gpg_control->data[0] == 1) { if (pkt->pkt.gpg_control->data[0] == 1) {

View File

@ -1734,7 +1734,7 @@ parse_encrypted( IOBUF inp, int pkttype, unsigned long pktlen,
/* fixme: add some pktlen sanity checks */ /* fixme: add some pktlen sanity checks */
int version; int version;
#warning decrementing pktlen here is bad as it gives a bad valie in the listing #warning decrementing pktlen here is bad as it gives a bad value in the listing
version = iobuf_get_noeof(inp); pktlen--; version = iobuf_get_noeof(inp); pktlen--;
if( version != 1 ) { if( version != 1 ) {
log_error("encrypted_mdc packet with unknown version %d\n", log_error("encrypted_mdc packet with unknown version %d\n",