mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
* bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.c: Edit all
preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
This commit is contained in:
parent
29e6411a7b
commit
ea35e3b65f
@ -1,3 +1,10 @@
|
|||||||
|
2003-05-24 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* bftest.c, crlf.c, mk-tdata.c, mpicalc.c, shmtest.c: Edit all
|
||||||
|
preprocessor instructions to remove whitespace before the
|
||||||
|
'#'. This is not required by C89, but there are some compilers out
|
||||||
|
there that don't like it.
|
||||||
|
|
||||||
2003-03-11 David Shaw <dshaw@jabberwocky.com>
|
2003-03-11 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Makefile.am: Use @CAPLIBS@ to link in -lcap if we are using
|
* Makefile.am: Use @CAPLIBS@ to link in -lcap if we are using
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef HAVE_DOSISH_SYSTEM
|
#ifdef HAVE_DOSISH_SYSTEM
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@ -47,15 +47,15 @@ strusage( int level )
|
|||||||
static void
|
static void
|
||||||
i18n_init(void)
|
i18n_init(void)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
#ifdef HAVE_LC_MESSAGES
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale( LC_MESSAGES, "" );
|
setlocale( LC_MESSAGES, "" );
|
||||||
#else
|
#else
|
||||||
setlocale( LC_ALL, "" );
|
setlocale( LC_ALL, "" );
|
||||||
#endif
|
#endif
|
||||||
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
||||||
textdomain( PACKAGE );
|
textdomain( PACKAGE );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -67,10 +67,10 @@ main(int argc, char **argv)
|
|||||||
int n, size=4096;
|
int n, size=4096;
|
||||||
int algo;
|
int algo;
|
||||||
|
|
||||||
#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 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
i18n_init();
|
i18n_init();
|
||||||
if( argc > 1 && !strcmp(argv[1], "-e") ) {
|
if( argc > 1 && !strcmp(argv[1], "-e") ) {
|
||||||
@ -109,4 +109,3 @@ main(int argc, char **argv)
|
|||||||
cipher_close(hd);
|
cipher_close(hd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,12 +25,12 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
lc = -1;
|
lc = -1;
|
||||||
while( (c=getchar()) != EOF ) {
|
while( (c=getchar()) != EOF ) {
|
||||||
#if 0
|
#if 0
|
||||||
if( c == '\r' && lc == ' ' )
|
if( c == '\r' && lc == ' ' )
|
||||||
fprintf(stderr,"SP,CR at %d\n", off );
|
fprintf(stderr,"SP,CR at %d\n", off );
|
||||||
if( c == '\n' && lc == ' ' )
|
if( c == '\n' && lc == ' ' )
|
||||||
fprintf(stderr,"SP,LF at %d\n", off );
|
fprintf(stderr,"SP,LF at %d\n", off );
|
||||||
#endif
|
#endif
|
||||||
if( c == '\n' && lc == '\r' )
|
if( c == '\n' && lc == '\r' )
|
||||||
putchar(c);
|
putchar(c);
|
||||||
else if( c == '\n' ) {
|
else if( c == '\n' ) {
|
||||||
@ -50,4 +50,3 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef RAND_MAX /* for SunOS */
|
#ifndef RAND_MAX /* for SunOS */
|
||||||
#define RAND_MAX 32767
|
#define RAND_MAX 32767
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -31,13 +31,12 @@ main(int argc, char **argv)
|
|||||||
srand(getpid());
|
srand(getpid());
|
||||||
|
|
||||||
for(i=0; !limit || i < limit; i++ ) {
|
for(i=0; !limit || i < limit; i++ ) {
|
||||||
#ifdef HAVE_RAND
|
#ifdef HAVE_RAND
|
||||||
c = ((unsigned)(1 + (int) (256.0*rand()/(RAND_MAX+1.0)))-1);
|
c = ((unsigned)(1 + (int) (256.0*rand()/(RAND_MAX+1.0)))-1);
|
||||||
#else
|
#else
|
||||||
c = ((unsigned)(1 + (int) (256.0*random()/(RAND_MAX+1.0)))-1);
|
c = ((unsigned)(1 + (int) (256.0*random()/(RAND_MAX+1.0)))-1);
|
||||||
#endif
|
#endif
|
||||||
putchar(c);
|
putchar(c);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,15 +65,15 @@ strusage( int level )
|
|||||||
static void
|
static void
|
||||||
i18n_init(void)
|
i18n_init(void)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
#ifdef HAVE_LC_MESSAGES
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale( LC_MESSAGES, "" );
|
setlocale( LC_MESSAGES, "" );
|
||||||
#else
|
#else
|
||||||
setlocale( LC_ALL, "" );
|
setlocale( LC_ALL, "" );
|
||||||
#endif
|
#endif
|
||||||
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
||||||
textdomain( PACKAGE );
|
textdomain( PACKAGE );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -386,5 +386,3 @@ main(int argc, char **argv)
|
|||||||
mpi_free(stack[i]);
|
mpi_free(stack[i]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,11 +19,11 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef HAVE_SYS_IPC_H
|
#ifdef HAVE_SYS_IPC_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_SHM_H
|
#ifdef HAVE_SYS_SHM_H
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#endif
|
#endif
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "ttyio.h"
|
#include "ttyio.h"
|
||||||
@ -55,15 +55,15 @@ strusage( int level )
|
|||||||
static void
|
static void
|
||||||
i18n_init(void)
|
i18n_init(void)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
#ifdef HAVE_LC_MESSAGES
|
#ifdef HAVE_LC_MESSAGES
|
||||||
setlocale( LC_MESSAGES, "" );
|
setlocale( LC_MESSAGES, "" );
|
||||||
#else
|
#else
|
||||||
setlocale( LC_ALL, "" );
|
setlocale( LC_ALL, "" );
|
||||||
#endif
|
#endif
|
||||||
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
bindtextdomain( PACKAGE, G10_LOCALEDIR );
|
||||||
textdomain( PACKAGE );
|
textdomain( PACKAGE );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -114,9 +114,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
log_set_name("shmtest");
|
log_set_name("shmtest");
|
||||||
i18n_init();
|
i18n_init();
|
||||||
#ifndef USE_SHM_COPROCESSING
|
#ifndef USE_SHM_COPROCESSING
|
||||||
log_info("SHM_COPRPOCESSING is not available\n");
|
log_info("SHM_COPRPOCESSING is not available\n");
|
||||||
#else
|
#else
|
||||||
if( argc < 1 )
|
if( argc < 1 )
|
||||||
my_usage();
|
my_usage();
|
||||||
|
|
||||||
@ -199,8 +199,7 @@ main(int argc, char **argv)
|
|||||||
log_error("pclose failed\n");
|
log_error("pclose failed\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user