Skip to content

Commit

Permalink
renamed variables c -> cc
Browse files Browse the repository at this point in the history
(c) is detected as Copyright mark
  • Loading branch information
janmojzis committed Dec 31, 2022
1 parent 677bba7 commit 5a94d31
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
30 changes: 15 additions & 15 deletions tinyssh/buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ extern int buf_putstring_(const char *, unsigned long long, struct buf *, const
extern int buf_putsharedsecret_(const char *, unsigned long long, struct buf *, const unsigned char *, long long);
extern int buf_putbase64_(const char *, unsigned long long, struct buf *, const unsigned char *, long long);

#define buf_init(a, b, c) buf_init_(__FILE__, __LINE__, (a), (b), (c))
#define buf_purge(a) buf_purge_(__FILE__, __LINE__, (a))
#define buf_ready(a, b) buf_ready_(__FILE__, __LINE__, (a), (b))

#define buf_put(a, b, c) buf_put_(__FILE__, __LINE__, (a), (b), (c))
#define buf_puts(a, b) buf_puts_(__FILE__, __LINE__, (a), (b))
#define buf_putzerobytes(a, b) buf_putzerobytes_(__FILE__, __LINE__, (a), (b))
#define buf_putrandombytes(a, b) buf_putrandombytes_(__FILE__, __LINE__, (a), (b))
#define buf_putpadding(a, b) buf_putpadding_(__FILE__, __LINE__, (a), (b))
#define buf_putnum32(a, b) buf_putnum32_(__FILE__, __LINE__, (a), (b))
#define buf_putnum8(a, b) buf_putnum8_(__FILE__, __LINE__, (a), (b))
#define buf_putstringlen(a, b, c) buf_putstringlen_(__FILE__, __LINE__, (a), (b), (c))
#define buf_putstring(a, b) buf_putstring_(__FILE__, __LINE__, (a), (b))
#define buf_putsharedsecret(a, b, c) buf_putsharedsecret_(__FILE__, __LINE__, (a), (b), (c))
#define buf_putbase64(a, b, c) buf_putbase64_(__FILE__, __LINE__, (a), (b), (c))
#define buf_init(a, b, cc) buf_init_(__FILE__, __LINE__, (a), (b), (cc))
#define buf_purge(a) buf_purge_(__FILE__, __LINE__, (a))
#define buf_ready(a, b) buf_ready_(__FILE__, __LINE__, (a), (b))

#define buf_put(a, b, cc) buf_put_(__FILE__, __LINE__, (a), (b), (cc))
#define buf_puts(a, b) buf_puts_(__FILE__, __LINE__, (a), (b))
#define buf_putzerobytes(a, b) buf_putzerobytes_(__FILE__, __LINE__, (a), (b))
#define buf_putrandombytes(a, b) buf_putrandombytes_(__FILE__, __LINE__, (a), (b))
#define buf_putpadding(a, b) buf_putpadding_(__FILE__, __LINE__, (a), (b))
#define buf_putnum32(a, b) buf_putnum32_(__FILE__, __LINE__, (a), (b))
#define buf_putnum8(a, b) buf_putnum8_(__FILE__, __LINE__, (a), (b))
#define buf_putstringlen(a, b, cc) buf_putstringlen_(__FILE__, __LINE__, (a), (b), (cc))
#define buf_putstring(a, b) buf_putstring_(__FILE__, __LINE__, (a), (b))
#define buf_putsharedsecret(a, b, cc) buf_putsharedsecret_(__FILE__, __LINE__, (a), (b), (cc))
#define buf_putbase64(a, b, cc) buf_putbase64_(__FILE__, __LINE__, (a), (b), (cc))

#endif

2 changes: 1 addition & 1 deletion tinyssh/die.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

extern void die_usage(const char *);
extern void die_fatal_(const char *, unsigned long long, const char *, const char *, const char *);
#define die_fatal(a, b, c) die_fatal_(__FILE__, __LINE__, (a), (b), (c))
#define die_fatal(a, b, cc) die_fatal_(__FILE__, __LINE__, (a), (b), (cc))

#endif
11 changes: 5 additions & 6 deletions tinyssh/packetparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ extern long long packetparser_copy_(const char *, unsigned long long, const unsi
extern long long packetparser_skip_(const char *, unsigned long long, const unsigned char *, long long, long long, long long);
extern long long packetparser_end_(const char *, unsigned long long, const unsigned char *, long long, long long);

#define packetparser_uint8(a, b, c, d) packetparser_uint8_(__FILE__, __LINE__, (a), (b), (c), (d))
#define packetparser_uint32(a, b, c, d) packetparser_uint32_(__FILE__, __LINE__, (a), (b), (c), (d))
#define packetparser_copy(a, b, c, d, e)packetparser_copy_(__FILE__, __LINE__, (a), (b), (c), (d), (e))
#define packetparser_skip(a, b, c, d) packetparser_skip_(__FILE__, __LINE__, (a), (b), (c), (d))
#define packetparser_end(a, b, c) packetparser_end_(__FILE__, __LINE__, (a), (b), (c))
#define packetparser_uint8(a, b, cc, d) packetparser_uint8_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_uint32(a, b, cc, d) packetparser_uint32_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_copy(a, b, cc, d, e) packetparser_copy_(__FILE__, __LINE__, (a), (b), (cc), (d), (e))
#define packetparser_skip(a, b, cc, d) packetparser_skip_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_end(a, b, cc) packetparser_end_(__FILE__, __LINE__, (a), (b), (cc))

#endif

0 comments on commit 5a94d31

Please sign in to comment.