citrus_mapper.c (485ac45a536e186a26411277af1fe98ef0d17c2b) | citrus_mapper.c (9ca40936af98a9285557875bdaab0d7312384bcb) |
---|---|
1/* $FreeBSD$ */ | 1/* $FreeBSD$ */ |
2/* $NetBSD: citrus_mapper.c,v 1.7 2008/07/25 14:05:25 christos Exp $ */ | 2/* $NetBSD: citrus_mapper.c,v 1.10 2012/06/08 07:49:42 martin Exp $ */ |
3 4/*- 5 * Copyright (c)2003 Citrus Project, 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 228 unchanged lines hidden (view full) --- 239 } 240 ret = (*getops)(cm->cm_ops); 241 if (ret) 242 goto err; 243 244 if (!cm->cm_ops->mo_init || 245 !cm->cm_ops->mo_uninit || 246 !cm->cm_ops->mo_convert || | 3 4/*- 5 * Copyright (c)2003 Citrus Project, 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 228 unchanged lines hidden (view full) --- 239 } 240 ret = (*getops)(cm->cm_ops); 241 if (ret) 242 goto err; 243 244 if (!cm->cm_ops->mo_init || 245 !cm->cm_ops->mo_uninit || 246 !cm->cm_ops->mo_convert || |
247 !cm->cm_ops->mo_init_state) | 247 !cm->cm_ops->mo_init_state) { 248 ret = EINVAL; |
248 goto err; | 249 goto err; |
250 } |
|
249 250 /* allocate traits structure */ 251 cm->cm_traits = malloc(sizeof(*cm->cm_traits)); 252 if (cm->cm_traits == NULL) { 253 ret = errno; 254 goto err; 255 } 256 /* initialize the mapper */ --- 147 unchanged lines hidden --- | 251 252 /* allocate traits structure */ 253 cm->cm_traits = malloc(sizeof(*cm->cm_traits)); 254 if (cm->cm_traits == NULL) { 255 ret = errno; 256 goto err; 257 } 258 /* initialize the mapper */ --- 147 unchanged lines hidden --- |