bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getdate


From: Andreas Jaeger
Subject: Re: getdate
Date: Mon, 16 Jul 2001 17:15:53 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)

Hendrik Uhlmann <address@hidden> writes:

> Hello
> 
> I have some trouble with the getdate function on my linux system (SuSE
> 7.1).
> 
> If I call getdate twice there are different results. The first call
> will give me a wrong result. All later calls (in the same prog) works
> cerrectly.

I don't know of any such problem.

> I have searched for this bug in your bug-reports, but I couldn't find
> something related. So I decided to mail you this problem.
> 
> Is this a known Bug in the glibc, or is this only a Bug on my System,
> or I'm to stupid to use this function correct?

Might be the latter one - try to compile your program with gcc -Wall
and send an updated test file after fixing all warnings.

I'll look tomorrow into this,
Andreas

P.S. here're the warnings I get:
get_date_c.c:14: warning: `struct tm' declared inside parameter list
get_date_c.c:14: warning: its scope is only this definition or declaration, 
which is probably not what you want.
get_date_c.c: In function `main':
get_date_c.c:21: `NULL' undeclared (first use in this function)
get_date_c.c:21: (Each undeclared identifier is reported only once
get_date_c.c:21: for each function it appears in.)
get_date_c.c:24: warning: implicit declaration of function `printf'
get_date_c.c:30: warning: implicit declaration of function `getdate'
get_date_c.c:30: warning: assignment makes pointer from integer without a cast
get_date_c.c:38: warning: passing arg 1 of `print' from incompatible pointer 
type
get_date_c.c:39: warning: implicit declaration of function `asctime'
get_date_c.c:39: warning: format argument is not a pointer (arg 2)
get_date_c.c: At top level:
get_date_c.c:47: warning: `struct tm' declared inside parameter list
get_date_c.c:48: conflicting types for `print'
get_date_c.c:14: previous declaration of `print'
get_date_c.c: In function `print':
get_date_c.c:59: dereferencing pointer to incomplete type
get_date_c.c:59: dereferencing pointer to incomplete type
get_date_c.c:59: dereferencing pointer to incomplete type
get_date_c.c:59: dereferencing pointer to incomplete type
get_date_c.c:59: dereferencing pointer to incomplete type
get_date_c.c:60: dereferencing pointer to incomplete type
get_date_c.c:60: dereferencing pointer to incomplete type
get_date_c.c:60: dereferencing pointer to incomplete type
get_date_c.c:60: dereferencing pointer to incomplete type
get_date_c.c:64: dereferencing pointer to incomplete type
get_date_c.c:64: dereferencing pointer to incomplete type

-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]