[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warning: pointer targets in assignment differ in signedness
From: |
Pawel Kot |
Subject: |
Re: warning: pointer targets in assignment differ in signedness |
Date: |
Wed, 4 Jan 2006 08:56:49 +0100 |
Hi,
2006/1/4, Dan Oetting <address@hidden>:
> And this is an example of why you want to see warnings: (does this
> code even work?)
Sure it works.
> in file nokia-decoding.c line 252:
>
> >> static gn_error calnote_get_alarm(int alarmdiff, gn_timestamp
> >> *time, gn_timestamp *alarm)
> >> {
> >> time_t t_alarm;
> >> struct tm tm_time, *tm_alarm;
> >> ...
> >> t_alarm += timezone;
>
> This is adding the pointer to the function timezone() instead of the
> offset from *time (or *alarm).
No. Do 'man timezone'. This is variable exported from time.h and is of
type long int.
pkot
--
Pawel Kot
http://www.gnokii.org/