~pixelherodev/DSM-9

2f53072942a882514f9392f8f0e45c015aa3ab92 — Noam Preil a day ago 7bce6aa
tmp
3 files changed, 8 insertions(+), 14 deletions(-)

M log.c
M util.c
M util.h
M log.c => log.c +0 -8
@@ 14,14 14,6 @@
#include "dsm9.h"
#include "util.h"

#ifdef _PLAN9_SOURCE
void
exit(int code)
{
	exits(code ? "failed" : nil);
}
#endif

dsm9deck deck;
unsigned long max_cards;
long timestamp;

M util.c => util.c +5 -6
@@ 8,15 8,14 @@

#ifdef _PLAN9_SOURCE
#include <u.h>
#ifdef _PLAN9_NOAPE
#include <libc.h>
#include "9compat.h"
#else
#include <lib9.h>
#define OREAD 0
#define UTFmax 4
#endif
#include <bio.h>
void
exit(int code)
{
	exits(code ? "failed" : nil);
}
#endif

#include <stdio.h>

M util.h => util.h +3 -0
@@ 5,4 5,7 @@ struct sm2_card *h_find_cards(struct sm2_instance *instance, uint32_t now, uint3
long sm2_load(struct sm2_instance *instance, char *base_path, int log);
void pin(int core);
char *readfile(char *path, size_t *size);
#ifdef _PLAN9_SOURCE
void exit(int);
#endif