Changeset 8300

Show
Ignore:
Timestamp:
12/12/11 15:52:22 (6 months ago)
Author:
westram
Message:
  • cppchecked (1.52)
Location:
trunk
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • trunk/AISC_COM/AISC/aisc_global.pa

    r7811 r8300  
    2525P  * ----------------------------------------------------------------- */ 
    2626-- 
    27 P #include "aisc_server.h" 
     27P #include <aisc_server.h> 
    2828-- 
    2929 
  • trunk/AISC_COM/C/server.c

    r8255 r8300  
    2727#include <setjmp.h> 
    2828 
    29 #include "aisc_com.h" 
     29#include <aisc_com.h> 
    3030// AISC_MKPT_PROMOTE:#include <aisc_func_types.h> 
    3131#include <attributes.h> 
  • trunk/ARB_GDE/GDE_FileIO.cxx

    r8254 r8300  
    11#include "GDE_proto.h" 
    2 #include "limits.h" 
     2#include <limits.h> 
    33#include <aw_msg.hxx> 
    44 
  • trunk/AWT/AWT_config_manager.cxx

    r7801 r8300  
    358358    config_map::iterator begin() { return cmap.begin(); } 
    359359    config_map::const_iterator end() const { return cmap.end(); } 
    360     // cppcheck-suppress functionConst 
    361360    config_map::iterator end() { return cmap.end(); } 
    362361}; 
  • trunk/AWT/AWT_input_mask.cxx

    r8103 r8300  
    20612061    free(title); 
    20622062} 
    2063 // cppcheck-suppress publicAllocationError 
     2063 
    20642064awt_input_mask_descriptor::awt_input_mask_descriptor(const awt_input_mask_descriptor& other) { 
    20652065    title             = strdup(other.title); 
  • trunk/EDIT4/ED4_secedit.cxx

    r6865 r8300  
    99// =============================================================== // 
    1010 
    11 #include "ed4_secedit.hxx" 
     11#include <ed4_secedit.hxx> 
    1212 
    1313#include <secedit_extern.hxx> 
  • trunk/PARSIMONY/GA_window.cxx

    r7801 r8300  
    1515#include "ap_tree_nlen.hxx" 
    1616#include "GA_genetic.hxx" 
    17 #include "phwin.hxx" 
     17#include <phwin.hxx> 
    1818#include <ntcanvas.hxx> 
    1919 
  • trunk/PGT/image_dialog.cxx

    r8257 r8300  
    1515#include "config_dialog.hxx" 
    1616#include "help_dialog.hxx" 
    17 #include "math.h" 
     17#include <math.h> 
    1818#include <X11/cursorfont.h> 
    1919 
  • trunk/PGT/plot.cxx

    r6347 r8300  
    170170 
    171171    // CREATE A TEMPORARY FILENAME (USING MKSTEMP) 
    172     m_temp_name= (char *)malloc(17 * sizeof(char)); 
     172    m_temp_name = (char *)malloc(17 * sizeof(char)); 
    173173    strcpy(m_temp_name, "/tmp/plot_XXXXXX"); 
    174         if((mkstemp(m_temp_name)) == -1) return NULL; 
    175  
    176     // AS MKTEMP ALSO CREATES THE FILE ITSELF (WHAT WE DON'T WANT) REMOVE IT 
    177     // RIGHT AFTER ITS CREATION FOR FURTHER USE AS A PIPE 
    178     unlink(m_temp_name); 
    179  
    180     // CREATE A FIFO PIPE 
    181     if(mkfifo(m_temp_name, S_IRUSR | S_IWUSR) != 0) return NULL; 
    182     m_command_pipe= popen(buf, "w"); 
    183  
    184     m_has_command_pipe= true; 
     174 
     175    FILE *result = NULL; 
     176    if ((mkstemp(m_temp_name)) != -1) { 
     177        // AS MKTEMP ALSO CREATES THE FILE ITSELF (WHAT WE DON'T WANT) REMOVE IT 
     178        // RIGHT AFTER ITS CREATION FOR FURTHER USE AS A PIPE 
     179        unlink(m_temp_name); 
     180 
     181        // CREATE A FIFO PIPE 
     182        if (mkfifo(m_temp_name, S_IRUSR | S_IWUSR) == 0) { 
     183            m_command_pipe     = popen(buf, "w"); 
     184            m_has_command_pipe = true; 
     185            result             = m_command_pipe; 
     186        } 
     187    } 
    185188 
    186189    free(buf); 
    187  
    188     return m_command_pipe; 
     190    return result; 
    189191} 
    190192 
  • trunk/WINDOW/AW_device.cxx

    r7768 r8300  
    388388#endif // DEBUG 
    389389 
    390 // cppcheck-suppress noConstructor 
    391390class AW_clip_scale_stack { 
    392391    // completely private, but accessible by AW_device 
  • trunk/WINDOW/AW_window.cxx

    r8280 r8300  
    12001200} 
    12011201 
    1202 // cppcheck-suppress publicAllocationError 
    12031202void AW_area_management::set_double_click_callback(AW_window *aww, void (*f)(AW_window*, AW_CL, AW_CL), AW_CL cd1, AW_CL cd2) { 
    12041203    double_click_cb = new AW_cb_struct(aww, f, cd1, cd2, (char*)0, double_click_cb);