We prefer c89 style of comments.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
credTypes,
sizeof(credTypes) / sizeof(int),
authCallback,
- NULL, // cbdata will be initialized in main
+ NULL, /* cbdata will be initialized in main */
};
securityDriver);
case VIR_DOMAIN_HOSTDEV_CAPS_TYPE_NET:
- return 0; // case is handled in virLXCControllerMoveInterfaces
+ return 0; /* case is handled in virLXCControllerMoveInterfaces */
default:
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
if (!(priv->closeCallback = virNewConnectCloseCallbackData()))
goto failed;
- // ref on behalf of netclient
+ /* ref on behalf of netclient */
virObjectRef(priv->closeCallback);
virNetClientSetCloseCallback(priv->client,
remoteClientCloseFunc,
avahi_strerror(avahi_client_errno(group->mdns->client)));
/* Some kind of failure happened while we were registering our services */
- //avahi_simple_poll_quit(simple_poll);
+ /* avahi_simple_poll_quit(simple_poll); */
break;
case AVAHI_ENTRY_GROUP_UNCOMMITED:
if (virSecurityManagerGenLabel(virSecurityStackGetPrimary(mgr), vm) < 0)
rc = -1;
-// TODO
+/* TODO */
#if 0
/* We don't allow secondary drivers to generate labels.
* This may have to change in the future, but requires
if (virSecurityManagerReleaseLabel(virSecurityStackGetPrimary(mgr), vm) < 0)
rc = -1;
-// TODO
+/* TODO */
#if 0
/* XXX See note in GenLabel */
if (virSecurityManagerReleaseLabel(priv->secondary, vm) < 0)
if (virSecurityManagerReserveLabel(virSecurityStackGetPrimary(mgr), vm, pid) < 0)
rc = -1;
-// TODO
+/* TODO */
#if 0
/* XXX See note in GenLabel */
if (virSecurityManagerReserveLabel(priv->secondary, vm, pid) < 0)
{
int rc = 0;
-// TODO
+/* TODO */
#if 0
if (virSecurityManagerGetProcessLabel(priv->secondary, vm, pid, seclabel) < 0)
rc = -1;
virCommandAddEnvPassCommon(cmd);
- //virCommandAddArgPair(cmd, "con0", "fd:0,fd:1");
+ /* virCommandAddArgPair(cmd, "con0", "fd:0,fd:1"); */
virCommandAddArgFormat(cmd, "mem=%lluK", vm->def->mem.cur_balloon);
virCommandAddArgPair(cmd, "umid", vm->def->name);
virCommandAddArgPair(cmd, "uml_dir", driver->monitorDir);
if (STRPREFIX(buf, cpu_header)) { /* aka logical CPU time */
if (sscanf(buf,
- "%*s %llu %llu %llu %llu %llu" // user ~ iowait
- "%llu %llu %llu %llu %llu", // irq ~ guest_nice
+ "%*s %llu %llu %llu %llu %llu" /* user ~ iowait */
+ "%llu %llu %llu %llu %llu", /* irq ~ guest_nice */
&usr, &ni, &sys, &idle, &iowait,
&irq, &softirq, &steal, &guest, &guest_nice) < 4) {
continue;
char meminfo_hdr[VIR_NODE_MEMORY_STATS_FIELD_LENGTH];
unsigned long val;
struct field_conv {
- const char *meminfo_hdr; // meminfo header
- const char *field; // MemoryStats field name
+ const char *meminfo_hdr; /* meminfo header */
+ const char *field; /* MemoryStats field name */
} field_conv[] = {
{"MemTotal:", VIR_NODE_MEMORY_STATS_TOTAL},
{"MemFree:", VIR_NODE_MEMORY_STATS_FREE},
goto cleanup;
}
if (hardDisk->parent == NULL) {
- //it means that the hard disk is in 'root'
+ /* it means that the hard disk is in 'root' */
for (i = 0; i < mediaRegistry->ndisks; i++) {
if (hardDisk == mediaRegistry->disks[i])
break;
if (finishJob("Write duplicate", 1, -1) != EXIT_SUCCESS)
return EXIT_FAILURE;
- //pthread_kill(eventThread, SIGTERM);
+ /* pthread_kill(eventThread, SIGTERM); */
return EXIT_SUCCESS;
}
{
int threads_per_subcore = 0;
- // Emulate SMT=8 on POWER hardware
+ /* Emulate SMT=8 on POWER hardware */
if (ARCH_IS_PPC64(arch))
threads_per_subcore = 8;