comparison minijss/jssmod.c @ 1167:848a88ce7a57

Use dmMemset().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Mar 2015 07:37:35 +0200
parents aa3738b121d1
children 823f8e06ff6a
comparison
equal deleted inserted replaced
1166:f29fa5b6b748 1167:848a88ce7a57
2 * miniJSS - Module structure and handling routines 2 * miniJSS - Module structure and handling routines
3 * Programmed and designed by Matti 'ccr' Hamalainen 3 * Programmed and designed by Matti 'ccr' Hamalainen
4 * (C) Copyright 2006-2015 Tecnic Software productions (TNSP) 4 * (C) Copyright 2006-2015 Tecnic Software productions (TNSP)
5 */ 5 */
6 #include "jssmod.h" 6 #include "jssmod.h"
7 #include <string.h>
8 7
9 8
10 #ifndef JSS_LIGHT 9 #ifndef JSS_LIGHT
11 10
12 /* Take given data until maxlen reached, make a string. 11 /* Take given data until maxlen reached, make a string.
361 #ifdef JSS_SUP_THREADS 360 #ifdef JSS_SUP_THREADS
362 dmDestroyMutex(module->mutex); 361 dmDestroyMutex(module->mutex);
363 #endif 362 #endif
364 363
365 // Free the module structure 364 // Free the module structure
366 memset(module, 0, sizeof(JSSModule)); 365 dmMemset(module, 0, sizeof(JSSModule));
367 dmFree(module); 366 dmFree(module);
368 367
369 return DMERR_OK; 368 return DMERR_OK;
370 } 369 }
371 370