Skip to content

Commit

Permalink
make input argument of byte_copyr() const
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDakon committed Apr 26, 2024
1 parent 0982496 commit 6e72c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion byte.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static inline unsigned int byte_chr(const void *s, unsigned int n, int c)
}
extern unsigned int byte_rchr(char *s, unsigned int n, int c);
#define byte_copy(to,n,from) memcpy(to,from,n)
extern void byte_copyr(char *to, unsigned int n, char *from);
extern void byte_copyr(char *to, unsigned int n, const char *from);
extern void byte_zero(char *s, unsigned int n);

#define byte_equal(s,n,t) (memcmp((s),(t),(n)) == 0)
Expand Down
2 changes: 1 addition & 1 deletion byte_cr.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "byte.h"

void byte_copyr(char *to, unsigned int n, char *from)
void byte_copyr(char *to, unsigned int n, const char *from)
{
to += n;
from += n;
Expand Down

0 comments on commit 6e72c06

Please sign in to comment.