functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
report_conflicts() { const std::list<CdlConflict>& all_conflicts = config->get_all_conflicts(); std::list<CdlConflict>::const_iterator conf_i; for (conf_i = all_conflicts.begin(); conf_i != all_conflicts.end(); conf_i++) { CdlNode node = (*conf_i)->get_node(); std::string msg = std::str...
false
false
false
false
false
0
mprTerminate(int how, int status) { MprTerminator terminator; int next; MPR->exitStatus = status; if (!(how & MPR_EXIT_DEFAULT)) { MPR->exitStrategy = how; } how = MPR->exitStrategy; if (how & MPR_EXIT_IMMEDIATE) { mprLog(2, "Immediate exit. Aborting all reques...
false
false
false
false
false
0
print_info_set_breaks (PrintInformation *pi, GnmPageBreaks *breaks) { GnmPageBreaks **target; g_return_if_fail (pi != NULL); target = breaks->is_vert ? &pi->page_breaks.v : &pi->page_breaks.h; if (*target == breaks) /* just in case something silly happens */ return; gnm_page_breaks_free (*target)...
false
false
false
false
false
0
main (int argc, char *argv[]) { GbemolApp* app; char opt; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gtk_set_locale (); g_thread_init(NULL); gdk_threads_init(); gtk_init (&argc, &argv); ...
false
false
false
false
false
0
wind_ucs2utf8(const uint16_t *in, size_t in_len, char *out, size_t *out_len) { uint16_t ch; size_t i, len, o; for (o = 0, i = 0; i < in_len; i++) { ch = in[i]; if (ch < 0x80) { len = 1; } else if (ch < 0x800) { len = 2; } else len = 3; o += len; if (out) { if (o >= *out_len) ...
false
false
false
false
false
0
wl12xx_cmd_stop_channel_switch(struct wl1271 *wl, struct wl12xx_vif *wlvif) { struct wl12xx_cmd_stop_channel_switch *cmd; int ret; wl1271_debug(DEBUG_ACX, "cmd stop channel switch"); cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); if (!cmd) { ret = -ENOMEM; goto out; } cmd->role_id = wlvif->role_id; ret = wl12...
false
false
false
false
false
0
debug_buffer (sc_gameref_t game, sc_command_type_t type) { const sc_filterref_t filter = gs_get_filter (game); const sc_char *buffer; if (type != COMMAND_QUERY) { if_print_debug ("The Buffer command takes no arguments.\n"); return; } buffer = pf_get_buffer (filter); if (buffer) if_pr...
false
false
false
false
false
0
frogr_config_add_account (FrogrConfig *self, FrogrAccount *faccount) { FrogrConfigPrivate *priv = NULL; FrogrAccount *found_account = NULL; const gchar *username = NULL; g_return_val_if_fail (FROGR_IS_CONFIG (self), FALSE); g_return_val_if_fail (FROGR_IS_ACCOUNT (faccount), FALSE);...
false
false
false
false
false
0
ExaminePoint (Real x, Real *mi, Real *ma) { Real y; if (x > eps) { if (1.-x > eps) { t = rratio*x/(1.-x); y = .5*(d1/t + d3*t) + g1*g3; } else if ( fabs(d3) < eps ) y = g1*g3; else y = sgn(d3); } else if ( fabs(d1) < eps ) y = g1*g3; else y = sgn(d1); if (y > *ma) *ma = ...
false
false
false
false
false
0
BF_decode(BF_word *dst, const char *src, int size) { unsigned char *dptr = (unsigned char *)dst; unsigned char *end = dptr + size; const unsigned char *sptr = (const unsigned char *)src; unsigned int tmp, c1, c2, c3, c4; do { BF_safe_atoi64(c1, *sptr++); BF_safe_atoi64(c2, *sptr++); *dptr++ = (c1 << 2) | ((...
false
false
false
false
false
0
clock() { int i; // Age bus value. if (--bus_value_ttl <= 0) { bus_value = 0; bus_value_ttl = 0; } // Clock amplitude modulators. for (i = 0; i < 3; i++) { voice[i].envelope.clock(); } // Clock oscillators. for (i = 0; i < 3; i++) { voice[i].wave.clock(); } ...
false
false
false
false
false
0
idt77252_init_est(struct vc_map *vc, int pcr) { struct rate_estimator *est; est = kzalloc(sizeof(struct rate_estimator), GFP_KERNEL); if (!est) return NULL; est->maxcps = pcr < 0 ? -pcr : pcr; est->cps = est->maxcps; est->avcps = est->cps << 5; est->interval = 2; /* XXX: make this configurable */ est->ewma...
false
false
false
false
false
0
rate_command(const char * rating) { set(& track, "rating", rating); if(haskey(& rc, "rate-cmd")) run(meta(value(& rc, "rate-cmd"), M_SHELLESC, & track)); }
false
false
false
false
false
0
nfs_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *info) { struct nfs2_fsstat fsinfo; struct rpc_message msg = { .rpc_proc = &nfs_procedures[NFSPROC_STATFS], .rpc_argp = fhandle, .rpc_resp = &fsinfo, }; int status; dprintk("NFS call fsinfo\n"); nfs_fattr_init(info->fa...
false
false
false
false
false
0
procmsg_msginfo_update_tags(MsgInfo *msginfo, gboolean set, gint id) { GSList changed; if (id == 0) return; if (!set) { msginfo->tags = g_slist_remove( msginfo->tags, GINT_TO_POINTER(id)); changed.data = GINT_TO_POINTER(id); changed.next = NULL; folder_item_commit_tags(msginfo->folder, msginfo,...
false
false
false
false
false
0
version_copyright(void) { static char *text[] = { "", "This program is derived from a work", "Copyright (C) 1990 David I. Bell.", "", "The %s program comes with ABSOLUTELY NO WARRANTY;", "for details use the ...
false
false
false
false
true
1
fuse_resolve_all (fuse_state_t *state) { if (state->resolve_now == NULL) { state->resolve_now = &state->resolve; state->loc_now = &state->loc; fuse_resolve (state); } else if (state->resolve_now == &state->resolve) { state->resolve_...
false
false
false
false
false
0
showCookies() { CookieDialog dialog(BrowserApplication::cookieJar(), this); dialog.exec(); }
false
false
false
false
false
0
get_filenames(const string& infilename, int version, string& dimension, float* geo_pbdry=NULL, double* bdbx=NULL) { cout << "infilename : " << infilename << endl; ifstream headerfile(infilename.c_str()); float dummy,xmax,ymax,zmax,xmin,ymin,zmin,geo_version; vector<string> filenames; string dummystring; i...
false
false
false
false
false
0
ixgbe_ptp_link_speed_adjust(struct ixgbe_adapter *adapter, u32 *shift, u32 *incval) { /** * Scale the NIC cycle counter by a large factor so that * relatively small corrections to the frequency can be added * or subtracted. The drawbacks of a large factor include * (a) the clock register overflows more qu...
false
false
false
false
false
0
load_imem_segment(struct c8sectpfei *fei, Elf32_Phdr *phdr, const struct firmware *fw, u8 __iomem *dest, int seg_num) { const u8 *imem_src = fw->data + phdr->p_offset; int i; /* * For IMEM segments, the segment contains 24-bit * instructions which must be padded to 32-bit * instructions before being wri...
false
false
false
false
false
0
fetion_sip_to_string(fetion_sip *sip, const gchar *body) { gchar *type; gchar *res; gchar *header_value; gchar *to_free; sip_header *pos; sip_header *temp; g_return_val_if_fail(sip != NULL, NULL); switch (sip->type) { case SIP_REGISTER: type = g_strdup("R...
false
false
false
false
false
0
flam3_create_chaos_distrib(flam3_genome *cp, int xi, unsigned short *xform_distrib) { /* Xform distrib is a preallocated array of CHOOSE_XFORM_GRAIN chars */ /* address of array is passed in, contents are modified */ double t,r,dr; int i,j; int num_std; //fprintf(stdout,"storing at %...
false
false
false
false
false
0
ast_carefulwrite(int fd, char *s, int len, int timeoutms) { struct timeval start = ast_tvnow(); int res = 0; int elapsed = 0; while (len) { if (ast_wait_for_output(fd, timeoutms - elapsed)) { return -1; } res = write(fd, s, len); if (res < 0 && errno != EAGAIN && errno != EINTR) { /* fatal error fr...
false
false
false
false
false
0
_sysmem_share (GstMemorySystem * mem, gssize offset, gsize size) { GstMemorySystem *sub; GstMemory *parent; /* find the real parent */ if ((parent = mem->mem.parent) == NULL) parent = (GstMemory *) mem; if (size == -1) size = mem->mem.size - offset; /* the shared memory is always readonly */ su...
false
false
false
false
false
0
request_wireless_scan (gpointer user_data) { NMDeviceWifi *self = NM_DEVICE_WIFI (user_data); NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self); gboolean backoff = FALSE; GPtrArray *ssids = NULL; if (check_scanning_allowed (self)) { nm_log_dbg (LOGD_WIFI_SCAN, "(%s): scanning requested", ...
false
false
false
false
false
0
rc_unregister_device(struct rc_dev *dev) { if (!dev) return; del_timer_sync(&dev->timer_keyup); if (dev->driver_type == RC_DRIVER_IR_RAW) ir_raw_event_unregister(dev); /* Freeing the table should also call the stop callback */ ir_free_table(&dev->rc_map); IR_dprintk(1, "Freed keycode table\n"); input_unr...
false
false
false
false
false
0
color_hsl_to_rgb(const Color* a, Color* b) { if (a->hsl.saturation == 0) { b->rgb.red = b->rgb.green = b->rgb.blue = a->hsl.lightness; } else { float q, p, R, G, B; if (a->hsl.lightness < 0.5) q = a->hsl.lightness * (1.0 + a->hsl.saturation); else q = a->hsl.lightness + a->hsl.saturation - a->hsl.light...
false
false
false
false
false
0
_nrrdTernaryOpIfElse(double a, double b, double c) { return (a ? b : c); }
false
false
false
false
false
0
real_trash (NautilusView *view) { GtkAction *action; action = gtk_action_group_get_action (view->details->dir_action_group, NAUTILUS_ACTION_TRASH); if (gtk_action_get_sensitive (action) && gtk_action_get_visible (action)) { trash_or_delete_selected_files (view); return TRUE; } return FALSE; }
false
false
false
false
false
0
p7_oprofile_GetFwdTransitionArray(const P7_OPROFILE *om, int type, float *arr ) { int nq = p7O_NQF(om->M); /* # of striped vectors needed */ int i, j; union { __m128 v; float x[4]; } tmp; /* used to align and read simd minivectors */ for (i=0; i<nq; i++) { tmp.v = om->tfv...
false
false
false
false
false
0
temp_think_specweap (edict_t * ent) { ent->touch = Touch_Item; if(((int)dmflags->value & DF_WEAPON_RESPAWN) && (!teamplay->value || teamdm->value || ctf->value == 2)) { ent->nextthink = level.time + (weapon_respawn->value * 0.6f); ent->think = G_FreeEdict; } else if (ctf->value) { ent->nextthink = level.ti...
false
false
false
false
false
0
png_push_handle_zTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) { if (!(png_ptr->mode & PNG_HAVE_IHDR) || (png_ptr->mode & PNG_HAVE_IEND)) { png_error(png_ptr, "Out of place zTXt"); info_ptr = info_ptr; /* To quiet some compiler warnings */ } #ifdef PNG_MA...
false
false
false
false
false
0
get_mmaped(size_t sz) { char * result; # ifdef USE_MMAP_ANON # define zero_fd -1 # else int zero_fd; # endif assert(!(sz & (CHUNK_SIZE - 1))); if (!mmap_enabled) return 0; # ifndef USE_MMAP_ANON zero_fd = open("/dev/zero", O_RDONLY); if (zero_fd == -1) return 0; # endif result = mmap(0...
false
false
false
false
false
0
update_device_source_list (DialogData *data) { gboolean source_available = FALSE; GList *mounts; GList *scan; gtk_list_store_clear (data->device_list_store); mounts = g_volume_monitor_get_mounts (g_volume_monitor_get ()); for (scan = mounts; scan; scan = scan->next) { GMount *mount = scan->data; ...
false
false
false
false
false
0
xstrcmp(const char *s1, const char *s2) { return strcmp(fix(s1), fix(s2)); }
false
false
false
false
false
0
qmfInverseModulationLP_even( HANDLE_QMF_FILTER_BANK synQmf, /*!< Handle of Qmf Synthesis Bank */ const FIXP_QMF *qmfReal, /*!< Pointer to qmf real subband slot (input) */ const int scaleFactorLowBand, /*!< Scalefactor for Low band */ ...
false
false
false
false
false
0
initProc() { // Store G* mass and width for propagator. idGstar = 5100039; mRes = particleDataPtr->m0(idGstar); GammaRes = particleDataPtr->mWidth(idGstar); m2Res = mRes*mRes; GamMRat = GammaRes / mRes; // SMinBulk = off/on, use universal coupling (kappaMG) // or individual (Gxx) between gr...
false
false
false
false
false
0
close_all_connections(struct Curl_multi *multi) { struct connectdata *conn; conn = Curl_conncache_find_first_connection(multi->conn_cache); while(conn) { SIGPIPE_VARIABLE(pipe_st); conn->data = multi->closure_handle; sigpipe_ignore(conn->data, &pipe_st); /* This will remove the connection from t...
false
false
false
false
false
0
gzip_init(struct comp_ctx **comp_ctx, int level) { z_stream *strm; if (init_comp_ctx(comp_ctx) < 0) return -1; strm = &(*comp_ctx)->strm; if (deflateInit2(strm, level, Z_DEFLATED, global.tune.zlibwindowsize + 16, global.tune.zlibmemlevel, Z_DEFAULT_STRATEGY) != Z_OK) { deinit_comp_ctx(comp_ctx); return -1;...
false
false
false
false
false
0
Scm_NumEq(ScmObj arg0, ScmObj arg1) { if (SCM_COMPNUMP(arg0)) { if (SCM_COMPNUMP(arg1)) { return ((SCM_COMPNUM_REAL(arg0) == SCM_COMPNUM_REAL(arg1)) && (SCM_COMPNUM_IMAG(arg0) == SCM_COMPNUM_IMAG(arg1))); } return FALSE; } else { if (SCM_COMPNUMP(a...
false
false
false
false
false
0
lookup_ref_path(haddr_t ref) { ref_path_node_t *node; /* Be safer for h5ls */ if(thefile < 0) return(NULL); /* Create ref path table, if it hasn't already been created */ if(ref_path_table == NULL) init_ref_path_table(); node = H5SL_search(ref_path_table, &ref); return(no...
false
false
false
false
false
0
processVideoImageDestination(char *line) { DMAN_VIDEOIMAGEDEST video; char *tok; CONDITION cond; memset(&video, 0, sizeof(video)); video.Type = DMAN_K_VIDEOIMAGEDEST; tok = strtok(line, "^\n"); copy(video.RequestingTitle, tok); video.Flag |= DMAN_K_VIDEOIMAGE_REQUESTING; tok = str...
false
false
false
false
false
0
findMostChromaticComponents(const std::string &a, const std::string &b) const { if(a == kOfxImageComponentNone) return b; if(a == kOfxImageComponentRGBA) return a; if(b == kOfxImageComponentRGBA) return b; if(a == kOfxImageComponentRGB) retur...
false
false
false
false
false
0
write_thumb(const gchar * filename, FILE * file) { gint height, rowstride, len, bps; gchar *thumb_key; GdkPixbuf *thumb; thumb = get_thumbnail(filename, &thumb_key); if (thumb == NULL) { WRITE(file, "0"); return TRUE; } height = gdk_pixbuf_get_height(thumb); rowstride =...
false
false
false
false
false
0
wm8776_init(struct snd_ice1712 *ice, struct snd_wm8776 *wm, unsigned int addr) { static const unsigned short inits_wm8776[] = { 0x02, 0x100, /* R2: headphone L+R muted + update */ 0x05, 0x100, /* R5: DAC output L+R muted + update */ 0x06, 0x000, /* R6: DAC output phase normal */ 0x07, 0x091, /* R7: DAC enab...
false
false
false
false
false
0
check_symbol_table(struct _mesa_symbol_table *table) { #if 1 struct scope_level *scope; for (scope = table->current_scope; scope != NULL; scope = scope->next) { struct symbol *sym; for (sym = scope->symbols ; sym != NULL ; sym = sym->next_with_same_name) { ...
false
false
false
false
false
0
Range_Next_Before(Range *range, int n) { if (Is_Empty(range)) return -1; if (Is_Interval(range)) /* here range is not empty */ { /* 1 <= i <= nb_elem */ if (n <= range->min) return -1; n--; if (n > range->max) n = range->max; return n; } return Vector_Next_Before(ran...
false
false
false
false
false
0
parse_objectid(struct finfo *f, int *objnum, int *objtype, char *what) { if (match_keyword(f, KW_FILE)) { *objtype = ID_REMOTE; return remote_objectid(f, objnum, what); } *objtype = ID_LOCAL; return local_objectid(f, objnum, what); }
false
false
false
false
false
0
dna_fix_maxval(struct configEntry *config_entry, int skip_range_request) { PRCList *servers = NULL; PRCList *server = NULL; PRUint64 lower = 0; PRUint64 upper = 0; int ret = LDAP_OPERATIONS_ERROR; if (config_entry == NULL) { goto bail; } /* If we already have a next ra...
false
false
false
false
false
0
filter_revert_changes(void) { GList *iter; if (GUI_PROPERTY(gui_debug) >= 5) g_debug("Canceling all changes to filters/rules"); filter_gui_freeze_filters(); filter_gui_freeze_rules(); /* * Free memory for all added filters and for the shadows. */ for (iter = shadow_filters; ...
false
false
false
false
false
0
set (float x, float y, float z, int phi) { int i; this->phi = phi; w [0].x = x; w [0].y = y; w [0].z = z; for (i = 1; i < 10; i ++) { w [i].y = y + 6.0 * i; w [i].x = w [i - 1].x + 0.1 * myrandom (60) - 3.0; w [i].z = w [i - 1].z + 0.1 * myrandom (60) - 3.0; } }
false
false
false
false
false
0
GGobi_addDisplayMenuItem (const gchar * label, ggobid * gg) { GtkWidget *entry = NULL; GtkWidget *dpy_menu = gg->display_menu; /*-- this is null --*/ GGobiData *data; if (dpy_menu != NULL) { entry = gtk_menu_item_new_with_mnemonic (label); data = GGobi_data_get (0, gg); g_object_set_data (G_OBJEC...
false
false
false
false
false
0
register_memcache(memcache_t* cs_entry) { struct memcache_node* cs_node; if(cs_entry == NULL) { LM_ERR("null argument\n"); return -1; } if (lookup_memcache( cs_entry->name)) { LM_ERR("memcache system <%.*s> already registered\n", cs_entry->name.len, cs_entry->name.s); return -1; } cs_node = (stru...
false
true
false
false
false
1
instl_p(name, flag) char *name; int flag; { struct gentry *gp; flag |= F_Global; if ((gp = glookup(name)) == NULL) gp = putglob(name, flag); else if ((gp->flag & (~F_Global)) == 0) { /* * superfluous global declaration for record or proc */ gp->flag |= flag; } ...
false
false
false
false
false
0
bnx2x_set_preemphasis(struct bnx2x_phy *phy, struct link_params *params) { u16 bank, i = 0; struct bnx2x *bp = params->bp; for (bank = MDIO_REG_BANK_RX0, i = 0; bank <= MDIO_REG_BANK_RX3; bank += (MDIO_REG_BANK_RX1-MDIO_REG_BANK_RX0), i++) { CL22_WR_OVER_CL45(bp, phy, bank, MDIO_RX0_R...
false
false
false
false
false
0
jdwp_unpack_u64( jdwp_buffer* buf, uint64_t* octet ){ REQUIRE_LEN(8); *octet = ntohll(*(uint64_t*)(buf->data + buf->ofs)); buf->ofs += 8; return 0; }
false
false
false
false
false
0
Perl_av_fetch(pTHX_ AV *av, I32 key, I32 lval) { dVAR; PERL_ARGS_ASSERT_AV_FETCH; assert(SvTYPE(av) == SVt_PVAV); if (SvRMAGICAL(av)) { const MAGIC * const tied_magic = mg_find((const SV *)av, PERL_MAGIC_tied); if (tied_magic || mg_find((const SV *)av, PERL_MAGIC_regdata)) { ...
false
false
false
false
false
0
e_contact_inline_photo_field (EContact *contact, EContactField field, GError **error) { EContactPhoto *photo; gboolean success = TRUE; photo = e_contact_get (contact, field); if (photo) { if (photo->type == E_CONTACT_PHOTO_TYPE_URI && g_str...
false
false
false
false
false
0
setUrl(const QUrl &url) { if (this->url() == url) return; QList<QUrl> urlList; urlList.append(url); QMimeData::setUrls(urlList); emit urlChanged(); }
false
false
false
false
false
0
HandleMechanicImmuneResistanceAuraProc(Unit* /*pVictim*/, uint32 /*damage*/, Aura* triggeredByAura, SpellEntry const* procSpell, uint32 /*procFlag*/, uint32 /*procEx*/, uint32 /*cooldown*/) { // Compare mechanic return !(procSpell == NULL || int32(procSpell->Mechanic) != triggeredByAura->GetModifier()->m_miscva...
false
false
false
false
false
0
perf_get_cur_host(perf_gconf_t *gconf, worker_t *worker) { void *val = NULL; if (gconf->clients.cur_host_i) { apr_hash_this(gconf->clients.cur_host_i, NULL, NULL, &val); } gconf->clients.cur_host = val; if (gconf->clients.cur_host) { gconf->clients.cur_host->worker = worker; } return val; }
false
false
false
false
false
0
inode_permission(struct inode *inode, int mask) { int retval; retval = sb_permission(inode->i_sb, inode, mask); if (retval) return retval; return __inode_permission(inode, mask); }
false
false
false
false
false
0
glade_gtk_cell_layout_add_child (GladeWidgetAdaptor *adaptor, GObject *container, GObject *child) { GladeWidget *gmodel = NULL; GladeWidget *grenderer = glade_widget_get_from_gobject (child); if (GTK_IS_ICON_VIEW (container) && (gmodel = glade_cell_renderer_get_model (grenderer)...
false
false
false
false
false
0
cgi_print_all(void){ int i; cgi_parameter("",""); /* For the parameters into sorted order */ for(i=0; i<nUsedQP; i++){ cgi_printf("%s = %s <br />\n", htmlize(aParamQP[i].zName, -1), htmlize(aParamQP[i].zValue, -1)); } }
false
false
false
false
false
0
php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream TSRMLS_DC) { php_stream_xport_crypto_param param; int ret; memset(&param, 0, sizeof(param)); param.op = STREAM_XPORT_CRYPTO_OP_SETUP; param.inputs.method = crypto_method; param.inputs.sessi...
false
false
false
false
false
0
fio_fgets(struct expr_t *str_xp, struct expr_t *fdxp) { int32 fd, slen, chlen; struct xstk_t *xsp; char *lp; /* result string can't be empty "(, fd)" */ if (str_xp->optyp == OPEMPTY) { errno = EINVAL; return(0); } /* fd is OS file number with high bit anded off - on error OS err num set */ if ((fd = chk_get_v...
false
false
false
false
false
0
xmlSchemaCleanupDoc(xmlSchemaParserCtxtPtr ctxt, xmlNodePtr root) { xmlNodePtr delete, cur; if ((ctxt == NULL) || (root == NULL)) return; /* * Remove all the blank text nodes */ delete = NULL; cur = root; while (cur != NULL) { if (delete != NULL) { xmlUnlinkNode(d...
false
false
false
false
false
0
connectNotify(const char *signal) { if(signal == QMetaObject::normalizedSignature(SIGNAL(hostNameReceived()))) d->connect_hostNameReceived = true; else if(signal == QMetaObject::normalizedSignature(SIGNAL(certificateRequested()))) d->connect_certificateRequested = true; else if(signal == QMetaObject::normalizedS...
false
false
false
false
false
0
pk_main_timeout_check_cb (PkEngine *engine) { guint idle; idle = pk_engine_get_seconds_idle (engine); g_debug ("idle is %i", idle); if (idle > exit_idle_time) { g_warning ("exit!!"); g_main_loop_quit (loop); return FALSE; } return TRUE; }
false
false
false
false
false
0
isThumb2(const MCSubtargetInfo &STI) const { return isThumb(STI) && STI.getFeatureBits()[ARM::FeatureThumb2]; }
false
false
false
false
false
0
snd_efw_transaction_add_instance(struct snd_efw *efw) { unsigned int i; spin_lock_irq(&instances_lock); for (i = 0; i < SNDRV_CARDS; i++) { if (instances[i] != NULL) continue; instances[i] = efw; break; } spin_unlock_irq(&instances_lock); }
false
false
false
false
false
0
exposeEvent(XExposeEvent &event) { if (m_icon_window == event.window) m_icon_window.clear(); else FbTk::TextButton::exposeEvent(event); }
false
false
false
false
false
0
ixgbe_fcoe_dma_pool_alloc(struct ixgbe_fcoe *fcoe, struct device *dev, unsigned int cpu) { struct ixgbe_fcoe_ddp_pool *ddp_pool; struct dma_pool *pool; char pool_name[32]; snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%u", cpu); pool = dma_pool_create(pool_name, dev, IXGBE_FCPTR_MAX, IXGBE_...
false
false
false
false
false
0
BuildMeshRefCountArray(aiNode* nd, unsigned int * refs) { for (unsigned int i = 0; i< nd->mNumMeshes;++i) refs[nd->mMeshes[i]]++; // call children for (unsigned int i = 0; i < nd->mNumChildren;++i) BuildMeshRefCountArray(nd->mChildren[i],refs); }
false
false
false
false
false
0
SetConstraints(OBFFConstraints& constraints) { if (!(_constraints.GetIgnoredBitVec() == constraints.GetIgnoredBitVec())) { _constraints = constraints; if (!SetupCalculations()) { _validSetup = false; return; } } else { _constraints = constraints; } _constraints...
false
false
false
false
false
0
connection_device_input(struct mux_connection *conn, unsigned char *payload, int payload_length) { if((conn->ib_size + payload_length) > conn->ib_capacity) { usbmuxd_log(LL_ERROR, "Input buffer overflow on device %d connection %d->%d (space=%d, payload=%d)", conn->dev->id, conn->sport, conn->dport, conn->ib_capacity...
false
false
false
false
false
0
switch_group(){ global_quantum_count = 0; switch(current_group){ case READY0: current_group = READY1; break; case READY1: current_group = READY2; break; case READY2: current_group = READY3; break; case READY3: current_group = R...
false
false
false
false
false
0
_ftb_climb_the_tree(FTB *ftb, FTB_WORD *ftbw, FT_SEG_ITERATOR *ftsi_orig) { FT_SEG_ITERATOR ftsi; FTB_EXPR *ftbe; float weight=ftbw->weight; int yn_flag= ftbw->flags, ythresh, mode=(ftsi_orig != 0); my_off_t curdoc=ftbw->docid[mode]; struct st_mysql_ftparser *parser= ftb->keynr == NO_SUCH_KEY ? ...
false
true
false
false
false
1
makedirname(char *filename) { static struct stat statbuf; char *s_temp = filename; char *s_slash = NULL; /* check in which directory `filename' is going to be, * so that we can get /foo/bar from /foo/bar/baz */ while (*s_temp) { if('/' == *s_temp) { s_slash = s_temp; } s_temp++; } i...
false
false
false
false
false
0
arena_chunk_dirty_comp(arena_chunk_t *a, arena_chunk_t *b) { assert(a != NULL); assert(b != NULL); /* * Short-circuit for self comparison. The following comparison code * would come to the same result, but at the cost of executing the slow * path. */ if (a == b) return (0); /* * Order such that chu...
false
false
false
false
false
0
v1_get_sw_enabled_protocol(char *dirname) { FILE *fp; char *p, buf[4096], name[512]; int rc; strcpy(name, dirname); strcat(name, "/enabled"); fp = fopen(name, "r"); if (!fp) { perror(name); return 0; } if (!fgets(buf, sizeof(buf), fp)) { perror(name); fclose(fp); return 0; } if (fclose(fp)) { ...
true
true
false
false
true
1
silkLayers(ViewLayer::ViewLayerPlacement viewLayerPlacement) { static LayerList bottom; static LayerList top; if (bottom.isEmpty()) { bottom << ViewLayer::Silkscreen0 << ViewLayer::Silkscreen0Label; } if (top.isEmpty()) { top << ViewLayer::Silkscreen1 << ViewLayer::Silkscreen1Label; } if (viewLayerPlacement ...
false
false
false
false
false
0
gretl_null_list (void) { int *list = malloc(sizeof *list); if (list != NULL) { list[0] = 0; } return list; }
false
false
false
false
false
0
sys_mmap( int sc_num, pid_t pid, pid_state *state ) { if( state->state==pid_state::NONE ) { dlog("mmap: " PID_F " direct call\n", pid); state->state=pid_state::RETURN; } else if( state->state==pid_state::RETURN ) { dlog("mmap: " PID_F " direct return\n", pid); state->state=pid_st...
false
false
false
false
false
0
DetermineConstraintAxis(int constraint, double eventPos[2]) { // Look for trivial cases: either not constrained or already constrained if ( ! this->Constrained ) { return -1; } else if ( constraint >= 0 && constraint < 3 ) { return c...
false
false
false
false
false
0
check_permissions(change_identifier &cid) { if (project_administrator_query(cid.get_pp(), cid.get_up()->name())) return; if ( cid.get_cp()->is_being_developed() && nstring(change_developer_name(cid.get_cp())) == cid.get_up()->name() ) return; if ( project_developers_may_create_changes_g...
false
false
false
false
false
0
acpi_rs_stream_option_length(u32 resource_length, u32 minimum_aml_resource_length) { u32 string_length = 0; ACPI_FUNCTION_ENTRY(); /* * The resource_source_index and resource_source are optional elements of some * Large-type resource descriptors. */ /* * If the length of the actual resource descr...
false
false
false
false
false
0
get_horizontal_alignment(Qt::Alignment align) { align &= Qt::AlignHorizontal_Mask; switch (align) { case Qt::AlignLeft: if (QApplication::isRightToLeft()) return Qt::AlignRight; break; case Qt::AlignRight: if (QApplication::isRightToLeft()) return Qt::AlignLeft; break; default: b...
false
false
false
false
false
0
iterate_bat_laser(Game *game) { gboolean kill_laser = FALSE; gint bat_center; Block *block; GList *children; Entity *laser; children = game->bat->children; while(children) { laser = (Entity *) children->data; children = g_list_next(children); laser->geometry.y1 -= LASER_SPEED; laser->geometry.y2 -= LAS...
false
false
false
false
false
0
make_and_insert_tube(const char *name) { int r; tube t = NULL; t = make_tube(name); if (!t) return NULL; /* We want this global tube list to behave like "weak" refs, so don't * increment the ref count. */ r = ms_append(&tubes, t); if (!r) return tube_dref(t), (tube) 0; return t; ...
false
false
false
false
false
0
AI_Next(GGadget *g, GEvent *e) { if ( e->type==et_controlevent && e->u.control.subtype == et_buttonactivate ) { GIData *ci = GDrawGetUserData(GGadgetGetWindow(g)); if ( ci->ap->next==NULL ) return( true ); AI_Display(ci,ci->ap->next); } return( true ); }
false
false
false
false
false
0
setuptree(tree *a, long nonodes) { /* initialize a tree */ /* used in fitch, kitsch, & neighbor */ long i=0; node *p; for (i = 1; i <= nonodes; i++) { a->nodep[i - 1]->back = NULL; a->nodep[i - 1]->tip = (i <= spp); a->nodep[i - 1]->iter = true; a->nodep[i - 1]->index = i; a->nodep[i - 1]...
false
false
false
false
false
0
mantiuk06_sort_float (const void *const v1, const void *const v2) { if (*((gfloat*)v1) < *((gfloat*)v2)) return -1; if (G_LIKELY (*((gfloat*)v1) > *((gfloat*)v2))) return 1; return 0; }
false
false
false
false
false
0
shell_quotearg(const char *path, unsigned char *buf, unsigned bufsize) { const char *src; unsigned char *dst, *endp; /* * Processing States: * UQSTRING: unquoted string: ... -- used for quoting exclamation * marks. This is the initial state * SQST...
false
false
false
false
false
0
rk_spdif_remove(struct platform_device *pdev) { struct rk_spdif_dev *spdif = dev_get_drvdata(&pdev->dev); pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) rk_spdif_runtime_suspend(&pdev->dev); clk_disable_unprepare(spdif->mclk); clk_disable_unprepare(spdif->hclk); return 0; }
false
false
false
false
false
0
rb_obj_id(obj) VALUE obj; { if (SPECIAL_CONST_P(obj)) { return LONG2NUM((long)obj); } return (VALUE)((long)obj|FIXNUM_FLAG); }
false
false
false
false
false
0
tpm_try_get_ops(struct tpm_chip *chip) { int rc = -EIO; get_device(&chip->dev); down_read(&chip->ops_sem); if (!chip->ops) goto out_lock; if (!try_module_get(chip->dev.parent->driver->owner)) goto out_lock; return 0; out_lock: up_read(&chip->ops_sem); put_device(&chip->dev); return rc; }
false
false
false
false
false
0
gkr_operation_ref (GkrOperation *op) { gint old; g_assert (op); #if GLIB_CHECK_VERSION (2,30,0) old = g_atomic_int_add (&op->refs, 1); #else old = g_atomic_int_exchange_and_add (&op->refs, 1); #endif if (old <= 0) { g_warning ("invalid or unreferenced gnome-keyring operation in use"); return NULL; } retu...
false
false
false
false
false
0
lookupUID(char *SOPClassName) { int /* Iteration variable */ i = 0; /* * Use SOP Class Name as key to the table to find the SOP Class UID. */ while ((i < (int) DIM_OF(table)) && strcmp(SOPClassName, table[i].SOPClassName)) i++; if (i < (int) DIM_OF(table))/* SOP Class...
false
false
false
false
false
0