X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device-src%2Ftape-device.c;fp=device-src%2Ftape-device.c;h=d8139dddc8a0ad2a80c7b2ca3d1cc8a18f464b13;hb=d28952249e392eb31bc8eecc53f6c477f30c617b;hp=0c7fe243b34536c8852bb8f586c72f7b3ab040f2;hpb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;p=debian%2Famanda diff --git a/device-src/tape-device.c b/device-src/tape-device.c index 0c7fe24..d8139dd 100644 --- a/device-src/tape-device.c +++ b/device-src/tape-device.c @@ -1,9 +1,10 @@ /* * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. + * 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 + * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY @@ -605,11 +606,12 @@ tape_device_set_read_block_size_fn(Device *p_self, DevicePropertyBase *base G_GN if (read_block_size != 0 && ((gsize)read_block_size < p_self->block_size || - (gsize)read_block_size > p_self->max_block_size)) + (gsize)read_block_size > p_self->max_block_size)) { device_set_error(p_self, g_strdup_printf("Error setting READ-BLOCk-SIZE property to '%u', it must be between %zu and %zu", read_block_size, p_self->block_size, p_self->max_block_size), DEVICE_STATUS_DEVICE_ERROR); return FALSE; + } self->private->read_block_size = read_block_size;