]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/dump-decl.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / test_src / dump-decl.c
index 0053df85a77a19696b4af1c277cbf8df97a165aa..f35423cceeaa1dd878c8b378624e2a5930b90473 100644 (file)
@@ -1,7 +1,7 @@
 /* dump.c */
 /*
     This file is part of the AVR-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 */
 /**
  * \file     dump.c
- * \email    daniel.otte@rub.de
+ * \email    bg@nerilex.org
  * \author   Daniel Otte 
  * \date     2009-02-04
  * \license  GPLv3 or later
@@ -36,9 +36,9 @@
  
 #define DUMP_WIDTH 16
 
-void pgm_read_block(voidbuffer, uint32_t addr, uint8_t length);
-void ee_read_block(voidbuffer, uint32_t addr, uint8_t length);
-void ram_read_block(voidbuffer, uint32_t addr, uint8_t length);
+void pgm_read_block(void *buffer, uint32_t addr, uint8_t length);
+void ee_read_block(void *buffer, uint32_t addr, uint8_t length);
+void ram_read_block(void *buffer, uint32_t addr, uint8_t length);
 
 const char flash_trigger[]  PROGMEM = "fF";
 const char ram_trigger[]    PROGMEM = "sSrRmM";
@@ -48,7 +48,7 @@ const char flash_desc[]  PROGMEM = "flash";
 const char ram_desc[]    PROGMEM = "ram";
 const char eeprom_desc[] PROGMEM = "eeprom";
 
-typedef struct {
+typedef const struct {
        PGM_P trigger;
        PGM_P desc;
        void (*fpt)(void*, uint32_t, uint8_t);
@@ -61,4 +61,4 @@ memtype_desc_t memtype_desc[] PROGMEM = {
        { NULL,            NULL,            NULL        }
 };
 
-void dump(chars);
+void dump(char *s);