]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - base64/base64_enc.c
global style change (now * is attached to identifier not to type)
[avr-crypto-lib.git] / base64 / base64_enc.c
index 400f25cd2b751c47fd7279d38205ec3f10a97c4b..57ae7f345639a58acb2ac9b3d3d8344ca3eef9af 100644 (file)
@@ -32,7 +32,7 @@
 #if 1
 #include <avr/pgmspace.h>
 
-char base64_alphabet[64] PROGMEM = {
+const char base64_alphabet[64] PROGMEM = {
        'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 
        'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 
        'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 
@@ -75,7 +75,7 @@ char bit6toAscii(uint8_t a){
 
 #endif
 
-void base64enc(char* dest, void* src, uint16_t length){
+void base64enc(char *dest,const void *src, uint16_t length){
        uint16_t i,j;
        uint8_t a[4];
        for(i=0; i<length/3; ++i){