voroojax / wireplay

Automatically exported from code.google.com/p/wireplay
0 stars 0 forks source link

Inappropriate #elif instead of #else in libnids/killtcp.c #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  1. cd libnids
  2. ./configure --enable-shared --disable-libglib
  3. make

What is the expected output? What do you see instead?
Expected:
  successful build
Actual:
  gcc -c -g -O2 -D_BSD_SOURCE -W -Wall -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 -DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1 -I. -I/usr/include/pcap -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H   killtcp.c
  killtcp.c:121:6: error: #elif with no expression

What version of the product are you using? On what operating system?
  svn/trunk, Debian Wheezy

Please provide any additional information below.
  Probably a forgotten #elif instead of #else. Replaced, appears to work.

Patch:
  * https://github.com/ziman/wireplay/commit/08e8a1db631b36e33348029e20389d9a940eee67
  * attached

Original issue reported on code.google.com by ooo...@gmail.com on 9 Mar 2011 at 9:54

Attachments:

GoogleCodeExporter commented 9 years ago
Hey, it's been a year now, and the change is only two characters... fixtime 
maybe?

Original comment by martin.holst on 2 Mar 2012 at 11:17

GoogleCodeExporter commented 9 years ago
Its been another two years now .. and the change is two characters .. fixit 
maybe ?

Original comment by borah.he...@gmail.com on 20 Aug 2014 at 10:50