fixed global variables, made them extern in *.h files

This commit is contained in:
TLINDEN
2013-12-01 16:15:41 +01:00
parent 6dc134c005
commit dc5f74e9be
4 changed files with 16 additions and 7 deletions

View File

@@ -29,6 +29,10 @@
#include <string.h>
#include <stdlib.h>
char *PCP_ERR;
byte PCP_ERRSET;
int PCP_EXIT;
void fatal(const char * fmt, ...) {
va_list ap;
va_start(ap, fmt);

View File

@@ -22,6 +22,11 @@
#include "keyhash.h"
pcp_key_t *pcpkey_hash;
pcp_pubkey_t *pcppubkey_hash;
pcp_key_t *__k;
pcp_pubkey_t *__p;
void pcphash_init() {
pcpkey_hash = NULL;
pcppubkey_hash = NULL;