Skip to content

Commit

Permalink
tfm: make a few functions static
Browse files Browse the repository at this point in the history
clamav expects them to be static and it does not seem bad to do so.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
  • Loading branch information
sebastianas committed Dec 17, 2015
1 parent 5c395e0 commit 09c7b2d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bin/fp_read_radix.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include <tfm_private.h>

int fp_read_radix(fp_int *a, char *str, int radix)
int fp_read_radix(fp_int *a, const char *str, int radix)
{
int y, neg;
char ch;
Expand Down
2 changes: 1 addition & 1 deletion src/bin/fp_read_signed_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include <tfm_private.h>

void fp_read_signed_bin(fp_int *a, unsigned char *b, int c)
void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c)
{
/* read magnitude */
fp_read_unsigned_bin (a, b + 1, c - 1);
Expand Down
2 changes: 1 addition & 1 deletion src/bin/fp_read_unsigned_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
#include <tfm_private.h>

void fp_read_unsigned_bin(fp_int *a, unsigned char *b, int c)
void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c)
{
/* zero the int */
fp_zero (a);
Expand Down
6 changes: 3 additions & 3 deletions src/headers/tfm.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,14 @@ int fp_prime_random_ex(fp_int *a, int t, int size, int flags, tfm_prime_callback
int fp_count_bits(fp_int *a);

int fp_unsigned_bin_size(fp_int *a);
void fp_read_unsigned_bin(fp_int *a, unsigned char *b, int c);
void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c);
void fp_to_unsigned_bin(fp_int *a, unsigned char *b);

int fp_signed_bin_size(fp_int *a);
void fp_read_signed_bin(fp_int *a, unsigned char *b, int c);
void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c);
void fp_to_signed_bin(fp_int *a, unsigned char *b);

int fp_read_radix(fp_int *a, char *str, int radix);
int fp_read_radix(fp_int *a, const char *str, int radix);

int fp_radix_size(fp_int *a, int radix, int *size);
int fp_toradix(fp_int *a, char *str, int radix);
Expand Down

0 comments on commit 09c7b2d

Please sign in to comment.