return NULL;
}
-int culfw_send(struct culfw_dev *dev, char *cmd, int cmdlen)
+int culfw_send(struct culfw_dev *dev, const char *cmd, int cmdlen)
{
int w = 0;
int ret;
};
struct culfw_dev *culfw_init(char *device, uint32_t speed, culfw_cb_fn cb, void *data);
-int culfw_send(struct culfw_dev *dev, char *cmd, int cmdlen);
+int culfw_send(struct culfw_dev *dev, const char *cmd, int cmdlen);
int culfw_poll(struct culfw_dev *dev, int timeout);
void culfw_close(struct culfw_dev *dev);
void culfw_flush(struct culfw_dev *dev);
* IN THE SOFTWARE.
*/
-static void asciishow(unsigned char *buf, int len)
+static void asciishow(const unsigned char *buf, int len)
{
int i;
}
}
-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;
static int libusb_initialized = 0;
/* Not in all libusb-1.0 versions, so we have to roll our own :-( */
-static char * usb_strerror(int e)
+static const char* usb_strerror(int e)
{
static char unknerr[256];
return unknerr;
}
-static char * usb_str_transfer_status(int e)
+static const char* usb_str_transfer_status(int e)
{
static char unknerr[256];
fprintf(f, "%s.%06ld: ", ts, tv.tv_usec);
}
-static void write_log(char *buf, int len, char *fmt, ...)
+static void write_log(const char *buf, int len, const char *fmt, ...)
{
va_list ap;
int i;
static int verbose = 0;
/* See HMConfig.pm */
-char *hm_message_types(uint8_t type, uint8_t subtype)
+const char *hm_message_types(uint8_t type, uint8_t subtype)
{
switch(type) {
case 0x00: