gprof.c (130776) | gprof.c (131990) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39 40#if 0 41#ifndef lint 42static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93"; 43#endif /* not lint */ 44#endif 45 46#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 30 unchanged lines hidden (view full) --- 39 40#if 0 41#ifndef lint 42static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93"; 43#endif /* not lint */ 44#endif 45 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/usr.bin/gprof/gprof.c 130776 2004-06-20 11:05:25Z stefanf $"); | 47__FBSDID("$FreeBSD: head/usr.bin/gprof/gprof.c 131990 2004-07-11 17:37:33Z stefanf $"); |
48 49#include <err.h> 50#include <limits.h> 51#include <stdint.h> 52#include <string.h> 53 54#include "gprof.h" 55 --- 356 unchanged lines hidden (view full) --- 412 } 413 return EQUALTO; 414} 415 416void 417readsamples(pfile) 418 FILE *pfile; 419{ | 48 49#include <err.h> 50#include <limits.h> 51#include <stdint.h> 52#include <string.h> 53 54#include "gprof.h" 55 --- 356 unchanged lines hidden (view full) --- 412 } 413 return EQUALTO; 414} 415 416void 417readsamples(pfile) 418 FILE *pfile; 419{ |
420 register i; | 420 int i; |
421 intmax_t sample; 422 423 if (samples == 0) { 424 samples = (double *) calloc(nsamples, sizeof(double)); 425 if (samples == 0) 426 errx(0, "no room for %d sample pc's", nsamples); 427 } 428 for (i = 0; i < nsamples; i++) { --- 182 unchanged lines hidden --- | 421 intmax_t sample; 422 423 if (samples == 0) { 424 samples = (double *) calloc(nsamples, sizeof(double)); 425 if (samples == 0) 426 errx(0, "no room for %d sample pc's", nsamples); 427 } 428 for (i = 0; i < nsamples; i++) { --- 182 unchanged lines hidden --- |