/*
* sysinfotest.c: Testcase(s) for virSysinfoRead
*
+ * Copyright (C) 2013 Red Hat, Inc.
* Copyright IBM Corp. 2012
*
* This library is free software; you can redistribute it and/or
goto cleanup;
}
- if (virSysinfoFormat(&buf,ret) < 0)
+ if (virSysinfoFormat(&buf, ret) < 0)
goto cleanup;
if (!(sysfsActualData = virBufferCurrentContent(&buf)))
/*
- * Copyright (C) 2011-2012 Red Hat, Inc.
+ * Copyright (C) 2011-2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
bucket[idx] += d;
virAtomicIntAdd(&atomic, d);
#ifdef WIN32
- SleepEx(0,0);
+ SleepEx(0, 0);
#else
sched_yield();
#endif
# define MAKE_CONTROLLER(subpath) \
do { \
char *path; \
- if (asprintf(&path,"%s/%s", fakesysfsdir, subpath) < 0) \
+ if (asprintf(&path, "%s/%s", fakesysfsdir, subpath) < 0)\
abort(); \
if (make_controller(path, 0755) < 0) { \
fprintf(stderr, "Cannot initialize %s\n", path); \
goto cleanup;
if (vshCommandOptStringReq(ctl, cmd, "inbound", &inboundStr) < 0 ||
- vshCommandOptStringReq(ctl,cmd, "outbound", &outboundStr) < 0)
+ vshCommandOptStringReq(ctl, cmd, "outbound", &outboundStr) < 0)
goto cleanup;
memset(&inbound, 0, sizeof(inbound));
/*
* virsh-volume.c: Commands to manage storage volume
*
- * Copyright (C) 2005, 2007-2012 Red Hat, Inc.
+ * Copyright (C) 2005, 2007-2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
if (format) {
virBufferAddLit(&buf, " <target>\n");
- virBufferAsprintf(&buf, " <format type='%s'/>\n",format);
+ virBufferAsprintf(&buf, " <format type='%s'/>\n", format);
virBufferAddLit(&buf, " </target>\n");
}
/* Create XML for the backing store */
virBufferAddLit(&buf, " <backingStore>\n");
- virBufferAsprintf(&buf, " <path>%s</path>\n",snapshotStrVolPath);
+ virBufferAsprintf(&buf, " <path>%s</path>\n", snapshotStrVolPath);
if (snapshotStrFormat)
- virBufferAsprintf(&buf, " <format type='%s'/>\n",snapshotStrFormat);
+ virBufferAsprintf(&buf, " <format type='%s'/>\n",
+ snapshotStrFormat);
virBufferAddLit(&buf, " </backingStore>\n");
/* Cleanup snapshot allocations */