~ubuntu-branches/ubuntu/wily/sg3-utils/wily

« back to all changes in this revision

Viewing changes to src/sg_write_buffer.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) 2006-2011 Luben Tuikov and Douglas Gilbert.
 
2
 * Copyright (c) 2006-2013 Luben Tuikov and 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.
25
25
 * This utility issues the SCSI WRITE BUFFER command to the given device.
26
26
 */
27
27
 
28
 
static char * version_str = "1.10 20110825";    /* spc4r32 */
 
28
static const char * version_str = "1.10 20130507";    /* spc4r32 */
29
29
 
30
30
#define ME "sg_write_buffer: "
31
31
#define DEF_XFER_LEN (8 * 1024 * 1024)
104
104
 
105
105
 
106
106
static struct mode_s {
107
 
        char *mode_string;
 
107
        const char *mode_string;
108
108
        int   mode;
109
 
        char *comment;
 
109
        const char *comment;
110
110
} modes[] = {
111
111
        { "hd",         MODE_HEADER_DATA, "combined header and data"},
112
112
        { "vendor",     MODE_VENDOR,    "vendor specific"},