]> git.zerfleddert.de Git - hmcfgusb/blobdiff - hexdump.h
Cleanup: Use size_t for len
[hmcfgusb] / hexdump.h
index 286435c1288d220585e05d9206c89147929828a0..127bfb090aeb6c1caec4955b2a9d9b6d105dcf23 100644 (file)
--- a/hexdump.h
+++ b/hexdump.h
@@ -1,6 +1,6 @@
 /* simple hexdumper
  *
- * Copyright (c) 2004-2013 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2004-2016 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -21,7 +21,7 @@
  * IN THE SOFTWARE.
  */
 
-static void asciishow(unsigned char *buf, int len)
+static void asciishow(const unsigned char *buf, int len)
 {
        int i;
 
@@ -35,7 +35,7 @@ static void asciishow(unsigned char *buf, int len)
        }
 }
 
-static void hexdump(unsigned char *buf, int len, char *prefix)
+static void hexdump(const unsigned char *buf, int len, const char *prefix)
 {
        int i, j;
 
Impressum, Datenschutz