~ubuntu-branches/ubuntu/vivid/sg3-utils/vivid-proposed

« back to all changes in this revision

Viewing changes to src/sg_wr_mode.c

  • Committer: Package Import Robot
  • Author(s): Ritesh Raj Sarraf
  • Date: 2013-06-23 16:08:01 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20130623160801-7rt7zb2dwk0ba7ut
Tags: 1.36-1
* [69e9dac] Imported Upstream version 1.36
* [cb75936] Add debian compat, level 7
* [68fed25] update README.source
* [3c724fc] Add build-dep autotools-dev
* [e4b9fdd] add destdir to install path
* [7cfff11] Simplify build with debhelper
* [f9a7540] Update symbols for 1.36 release
* [7b0b48d] Enable hardening build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2004-2010 Douglas Gilbert.
 
2
 * Copyright (c) 2004-2013 Douglas Gilbert.
3
3
 * All rights reserved.
4
4
 * Use of this source code is governed by a BSD-style
5
5
 * license that can be found in the BSD_LICENSE file.
24
24
 * mode page on the given device.
25
25
 */
26
26
 
27
 
static char * version_str = "1.10 20100423";
 
27
static const char * version_str = "1.10 20130507";
28
28
 
29
29
#define ME "sg_wr_mode: "
30
30
 
187
187
                    return 1;
188
188
                }
189
189
                mp_arr[k] = h;
190
 
                cp = strchr(lcp, ',');
191
 
                c2p = strchr(lcp, ' ');
 
190
                cp = (char *)strchr(lcp, ',');
 
191
                c2p = (char *)strchr(lcp, ' ');
192
192
                if (NULL == cp)
193
193
                    cp = c2p;
194
194
                if (NULL == cp)
247
247
                    return 1;
248
248
                }
249
249
                mask_arr[k] = h;
250
 
                cp = strchr(lcp, ',');
251
 
                c2p = strchr(lcp, ' ');
 
250
                cp = (char *)strchr(lcp, ',');
 
251
                c2p = (char *)strchr(lcp, ' ');
252
252
                if (NULL == cp)
253
253
                    cp = c2p;
254
254
                if (NULL == cp)