Add common.c
This commit is contained in:
1 parent
a8ebefbef3
commit
21ae1f34c3
4 files changed
+11
-5
No files matched your search
@@ -0,0 +1,8 @@
|
||||
#include "common.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void gt_not_available (const char *name)
|
||||
{
|
||||
fprintf(stderr, "%s is not available on your platform!\n", name);
|
||||
}
|
||||
@@ -24,3 +24,5 @@ struct buffer {
|
||||
uint8_t *write;
|
||||
uint8_t *end;
|
||||
};
|
||||
|
||||
void gt_not_available (const char *);
|
||||
@@ -43,11 +43,6 @@ struct crypto_ctx {
|
||||
|
||||
volatile sig_atomic_t running;
|
||||
|
||||
static void gt_not_available (const char *name)
|
||||
{
|
||||
fprintf(stderr, "%s is not available on your platform!\n", name);
|
||||
}
|
||||
|
||||
static int64_t dt_ms (struct timeval *ta, struct timeval *tb)
|
||||
{
|
||||
const int64_t s = ta->tv_sec-tb->tv_sec;
|
||||
|
||||
Reference in new issue
Block a user