diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2013-05-08 13:21:30 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2013-05-08 13:21:30 +0000 |
commit | 02ec79b083e6bd32b71937f0b3b6b0108769c184 (patch) | |
tree | cfdea6d63740f214ba6de984af36df0df265587d /src/sg_persist.c | |
parent | eac58c25208cc3d1ef6a7f4feaf711c161350451 (diff) | |
download | sg3_utils-02ec79b083e6bd32b71937f0b3b6b0108769c184.tar.gz |
sg_xcopy: add --on_src and --on_dst options; C++ cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@494 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_persist.c')
-rw-r--r-- | src/sg_persist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sg_persist.c b/src/sg_persist.c index 88d1e533..977618f4 100644 --- a/src/sg_persist.c +++ b/src/sg_persist.c @@ -1,5 +1,5 @@ /* A utility program originally written for the Linux OS SCSI subsystem. - * Copyright (C) 2004-2012 D. Gilbert + * Copyright (C) 2004-2013 D. Gilbert * 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 * the Free Software Foundation; either version 2, or (at your option) @@ -26,7 +26,7 @@ #include "sg_cmds_basic.h" #include "sg_cmds_extra.h" -static char * version_str = "0.38 20120224"; +static const char * version_str = "0.38 20130507"; #define PRIN_RKEY_SA 0x0 @@ -932,8 +932,8 @@ build_transportid(const char * inp, struct opts_t * optsp) return 1; } tid_arr[k] = h; - cp = strchr(lcp, ','); - c2p = strchr(lcp, ' '); + cp = (char *)strchr(lcp, ','); + c2p = (char *)strchr(lcp, ' '); if (NULL == cp) cp = c2p; if (NULL == cp) |