Print this page
6154 const-ify segment ops structures

*** 764,774 **** if (capability == S_CAPABILITY_NOMINFLT) return (1); return (0); } ! static struct seg_ops segkmem_ops = { .dup = SEGKMEM_BADOP(int), .unmap = SEGKMEM_BADOP(int), .free = SEGKMEM_BADOP(void), .fault = segkmem_fault, .faulta = SEGKMEM_BADOP(faultcode_t), --- 764,774 ---- if (capability == S_CAPABILITY_NOMINFLT) return (1); return (0); } ! static const struct seg_ops segkmem_ops = { .dup = SEGKMEM_BADOP(int), .unmap = SEGKMEM_BADOP(int), .free = SEGKMEM_BADOP(void), .fault = segkmem_fault, .faulta = SEGKMEM_BADOP(faultcode_t),